This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44625] [4.3/4.4/4.5/4.6/4.7 Regression] ICE after error: anonymous struct not inside named type
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Jun 2011 16:59:02 +0000
- Subject: [Bug c++/44625] [4.3/4.4/4.5/4.6/4.7 Regression] ICE after error: anonymous struct not inside named type
- Auto-submitted: auto-generated
- References: <bug-44625-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44625
--- Comment #7 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-06-23 16:58:31 UTC ---
Author: paolo
Date: Thu Jun 23 16:58:28 2011
New Revision: 175344
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175344
Log:
/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.
Added:
trunk/gcc/testsuite/g++.dg/template/crash107.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl2.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/template/error17.C