This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28387] New: [4.2 regression] ICE with attribute on invalid declaration
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jul 2006 20:30:27 -0000
- Subject: [Bug c++/28387] New: [4.2 regression] ICE with attribute on invalid declaration
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.
--
Summary: [4.2 regression] ICE with attribute on invalid
declaration
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: reichelt at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28387