Mainline's C++ frontend ICEs on the following code: ======================================= enum __attribute__((unused)) E; ======================================= bug.cc:1: error: use of enum 'E' without previous declaration bug.cc:1: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in decl_attributes, at attribs.c:281 Please submit a full bug report, [etc.] Posting a patch soon.
Subject: Bug number PR c++/28387 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00648.html
Subject: Bug 28387 Author: reichelt Date: Sat Jul 15 09:22:17 2006 New Revision: 115465 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115465 Log: PR c++/28387 * decl2.c (cplus_decl_attributes): Check for invalid decls. * g++.dg/ext/attrib24.C: New test. Added: trunk/gcc/testsuite/g++.dg/ext/attrib24.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl2.c trunk/gcc/testsuite/ChangeLog
Fixed on mainline.