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

Reply via email to