re PR c++/67557 (Calling copy constructor of base class in constructor of derived...
authorJason Merrill <jason@redhat.com>
Mon, 12 Oct 2015 07:58:43 +0000 (03:58 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 12 Oct 2015 07:58:43 +0000 (03:58 -0400)
commitf5a8677b3756ff2278a3f094bca7575514d90655
tree4b583f1035c03ad2ebaa0d9fcea61f20f3086f54
parent5330a79d3409f2e0f0dfd314414e53e29136cf89
re PR c++/67557 (Calling copy constructor of base class in constructor of derived class produces crashing code)

PR c++/67557

* expr.c (store_field): Call store_constructor directly when
storing a CONSTRUCTOR into a target smaller than its type.
Guard against unsafe bitwise copy.

From-SVN: r228704
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/g++.dg/init/vbase1.C