[Bug c++/98665] New: lvalue ref lifetime extension missing for via sub-object of temporary expression

2021-01-13 Thread jgilbert at mozilla dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98665 Bug ID: 98665 Summary: lvalue ref lifetime extension missing for via sub-object of temporary expression Product: gcc Version: unknown Status: UNCONFIRMED Keywor

[Bug c++/98665] lvalue ref lifetime extension missing for via sub-object of temporary expression

2021-01-13 Thread jgilbert at mozilla dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98665 --- Comment #3 from Jeff Gilbert --- Ok, but this is ok, right? const auto& i2 = f().i;

[Bug c++/98665] lvalue ref lifetime extension missing for via sub-object of temporary expression

2021-01-13 Thread jgilbert at mozilla dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98665 Jeff Gilbert changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---