[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 5 22:59:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293
--- Comment #13 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Oct 5 22:58:55 2016
New Revision: 240819
URL: https://gcc.gnu.org/viewcvs?rev=240819&root=gcc&view=rev
Log:
PR c++/54293 - binding reference to member of temporary
* call.c (reference_binding): Fix binding to member of temporary.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/g++.dg/init/ref19.C
More information about the Gcc-bugs
mailing list