The following invalid code snippet causes an ICE since at least gcc 2.95.3:

==================
struct A
{
    A : 2;
};
==================

bug.cc:3: error: name 'A' has incomplete type
bug.cc:2: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in layout_class_type, at cp/class.c:4571
Please submit a full bug report, [etc.]

-- 
           Summary: ICE on invalid member declaration
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19963

Reply via email to