https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114745

Gaius Mulley <gaius at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-04-16

--- Comment #1 from Gaius Mulley <gaius at gcc dot gnu.org> ---
wrong test program (above).  The test which causes the ICE can be reduced to
the example here:

MODULE constcast ;

FROM SYSTEM IMPORT CAST ;

CONST Nil = CAST (PROC, NIL) ;

BEGIN
END constcast.

$ gm2 -fiso constcast.mod
cc1gm2: internal compiler error: symbol out of bounds
0x840837 m2linemap_internal_error
        ../../gcc/m2/gm2-gcc/m2linemap.cc:253
0x90b74b M2Emit_InternalError
        m2/gm2-compiler-boot/M2Emit.c:102
0x86fa8b M2Error_InternalError
        m2/gm2-compiler-boot/M2Error.c:2651
0x8d117b GetPsym
        m2/gm2-compiler-boot/SymbolTable.c:4610
0x8d117b GetPsym
        m2/gm2-compiler-boot/SymbolTable.c:4599
0x8d117b SymbolTable_IsSubrange
        m2/gm2-compiler-boot/SymbolTable.c:18569
0x865587 M2Base_IsOrdinalType
        m2/gm2-compiler-boot/M2Base.c:3195
0x8c05bf TypeToMeta
        m2/gm2-compiler-boot/PCSymBuild.c:1173
0x8c05bf TypeToMeta
        m2/gm2-compiler-boot/PCSymBuild.c:1152
0x8c13d7 buildConstFunction
        m2/gm2-compiler-boot/PCSymBuild.c:1233
0x8c13d7 PCSymBuild_PushConstFunctionType
        m2/gm2-compiler-boot/PCSymBuild.c:2698
0x8f5ebb ConstructorOrConstActualParameters
        m2/gm2-compiler-boot/PCBuild.c:4460
0x8f5ebb ConstSetOrQualidentOrFunction
        m2/gm2-compiler-boot/PCBuild.c:4508
0x8f5ebb ConstFactor
        m2/gm2-compiler-boot/PCBuild.c:4251
0x8f5f3b ConstTerm
        m2/gm2-compiler-boot/PCBuild.c:4085
0x8f6203 UnaryOrConstTerm
        m2/gm2-compiler-boot/PCBuild.c:3977
0x8f6203 SimpleConstExpr
        m2/gm2-compiler-boot/PCBuild.c:3929
0x8f648f ConstExpression
        m2/gm2-compiler-boot/PCBuild.c:3812
0x8f66e7 ConstantDeclaration
        m2/gm2-compiler-boot/PCBuild.c:3772
0x8f925f Declaration
        m2/gm2-compiler-boot/PCBuild.c:7471
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to