re PR c++/49803 ([C++0x] erroneous variant-member initialization in a union containin...
authorJason Merrill <jason@redhat.com>
Tue, 2 Aug 2011 21:08:57 +0000 (17:08 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 2 Aug 2011 21:08:57 +0000 (17:08 -0400)
commitadc651f305521e0e8e46fe1fee904532140d7a5e
tree85932c48fd6620e32bfa62016f01cc224040919c
parent9f8139900d3b6be84b303ad505cf5899e95d8ea2
re PR c++/49803 ([C++0x] erroneous variant-member initialization in a union containing an anonymous struct)

PR c++/49803
* init.c (sort_mem_initializers): Initialize uses_unions_p here.
(build_field_list): Not here.

From-SVN: r177213
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/union5.C [new file with mode: 0644]