[Bug c++/67557] [4.9 Regression] Calling copy constructor of base class in constructor of derived class produces crashing code
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 17 16:53:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67557
--- Comment #16 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Dec 17 16:52:19 2015
New Revision: 231780
URL: https://gcc.gnu.org/viewcvs?rev=231780&root=gcc&view=rev
Log:
PR c++/67557
* call.c (is_base_field_ref): New.
(unsafe_copy_elision_p): New.
(build_over_call): Use it.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/init/elide3.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/call.c
More information about the Gcc-bugs
mailing list