[Bug c++/98665] lvalue ref lifetime extension missing for via sub-object of temporary expression
jgilbert at mozilla dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 13 23:48:53 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98665
--- Comment #3 from Jeff Gilbert <jgilbert at mozilla dot com> ---
Ok, but this is ok, right?
const auto& i2 = f().i;
More information about the Gcc-bugs
mailing list