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

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 14 11:53:50 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98665

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> GCC should not compile this.

That's now PR c++/98675


More information about the Gcc-bugs mailing list