re PR c++/27951 (ICE with invalid anonymous union)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Mon, 12 Jun 2006 20:50:53 +0000 (20:50 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Mon, 12 Jun 2006 20:50:53 +0000 (20:50 +0000)
commit8bdb09cb0bdd321166269b928f4dcc39d3841c77
treeaedcb4e5b3f8cbd956e7c884f3cd5ab9e6b1ddee
parent02a5eac4833861df9a1ce8721dc9a7d0b3de26d6
re PR c++/27951 (ICE with invalid anonymous union)

PR c++/27951
* decl2.c (finish_anon_union): Return early if build_anon_union_vars
fails.

* g++.dg/other/anon4.C: New test.

From-SVN: r114577
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/anon4.C [new file with mode: 0644]