re PR c++/52377 (C++11 non-static initializers in unions are not used)
authorJason Merrill <jason@redhat.com>
Thu, 30 May 2013 19:20:08 +0000 (15:20 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 30 May 2013 19:20:08 +0000 (15:20 -0400)
commit3a6a88c863a752e70e9a013ae89c87a3d7efe39b
treebb39bab3f2e19d7c75a3fd741f20f1059ba81b25
parent65f9e78999a8ff2dd889c0e3eec04f2aa0422542
re PR c++/52377 (C++11 non-static initializers in unions are not used)

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.

From-SVN: r199455
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]