[Bug c++/67557] [4.9/5/6 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
Wed Oct 21 09:27:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67557
--- Comment #15 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Oct 21 09:27:12 2015
New Revision: 229121
URL: https://gcc.gnu.org/viewcvs?rev=229121&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-5-branch/gcc/testsuite/g++.dg/init/elide3.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/call.c
More information about the Gcc-bugs
mailing list