The following invalid testcase triggers an ICE since at least GCC 2.95.3:

=========================================
extern "Java"
{
  struct A { typedef int class$; };
}

typedef void* jclass;

A* p = new A;
=========================================

bug.cc:8: internal compiler error: in write_java_integer_type_codes, at
cp/mangle.c:2898
Please submit a full bug report, [etc.]


-- 
           Summary: ICE with invalid class$
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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

Reply via email to