PR c++/52377
commit5d6e94a7ca13ab8ff7a46141f8a879e2878abb0d
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 May 2013 19:20:08 +0000 (30 19:20 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 May 2013 19:20:08 +0000 (30 19:20 +0000)
treebb39bab3f2e19d7c75a3fd741f20f1059ba81b25
parentfb08a7c61bbb9d26343f4435d37141b1416bc3f8
PR c++/52377
* class.c (common_enclosing_class): New.
* cp-tree.h: Declare it.
* init.c (sort_mem_initializers): Don't splice out a union member
with an NSDMI.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199455 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/testsuite/g++.dg/cpp0x/nsdmi-union1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/nsdmi-union2.C [new file with mode: 0644]