re PR c++/44625 (ICE after error: anonymous struct not inside named type)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 23 Jun 2011 16:58:28 +0000 (16:58 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 23 Jun 2011 16:58:28 +0000 (16:58 +0000)
commit165d997d2ae172d9b084206a0c4566f3f2d31a55
tree690df81dd299d80b4a402768cd92d32f65638a8f
parent767de87d05afc6574bf1c5812391b2d865ee817f
re PR c++/44625 (ICE after error: anonymous struct not inside named type)

/cp
2011-06-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/44625
* decl2.c (build_anon_union_vars): Early return error_mark_node
for a nested anonymous struct.

/testsuite
2011-06-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/44625
* g++.dg/template/crash107.C: New.
* g++.dg/template/error17.C: Adjust.

From-SVN: r175344
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash107.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/error17.C