The following invalid code snippet triggers an ICE since GCC 3.1.1:

====================================================
#pragma weak int = foo
====================================================

<built-in>:0: error: weak declaration of 'int' must be public
bug.c:1: internal compiler error: in make_decl_rtl, at varasm.c:1267
Please submit a full bug report, [etc.]

Also happens with the C++ frontend.


-- 
           Summary: [4.1/4.2/4.3/4.4 regression] ICE with invalid pragma
                    weak
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, 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=35330

Reply via email to