re PR c++/67557 (Calling copy constructor of base class in constructor of derived...
authorJason Merrill <jason@redhat.com>
Thu, 8 Oct 2015 14:42:02 +0000 (10:42 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 8 Oct 2015 14:42:02 +0000 (10:42 -0400)
commit3c769e5a5bd0b684cbf3c7d115e1fe325f79e468
tree3070e76486ff4b40bbefeae75396bb1d09301e3e
parent25a2c75d49ab2bebbae48b3640c999c43c8375bf
re PR c++/67557 (Calling copy constructor of base class in constructor of derived class produces crashing code)

PR c++/67557

* call.c (is_base_field_ref): New.
(unsafe_copy_elision_p): New.
(build_over_call): Use it.

From-SVN: r228602
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/init/elide3.C [new file with mode: 0644]