This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67557] [4.9/5/6 regression] Calling copy constructor of base class in constructor of derived class produces crashing code
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Oct 2015 14:42:34 +0000
- Subject: [Bug c++/67557] [4.9/5/6 regression] Calling copy constructor of base class in constructor of derived class produces crashing code
- Auto-submitted: auto-generated
- References: <bug-67557-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67557
--- Comment #13 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Oct 8 14:42:02 2015
New Revision: 228602
URL: https://gcc.gnu.org/viewcvs?rev=228602&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:
trunk/gcc/testsuite/g++.dg/init/elide3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c