https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110633
Bug ID: 110633 Summary: Using an unknown identifier as argument to ORD results in ICE Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: ad...@tho-otto.de Target Milestone: --- When compiling MODULE foo; VAR x: CARDINAL; BEGIN x := ORD(nosuchvar); END foo. I get: M2MetaError.mod:1535:internalformat error detected errorBlock type = abort out = || in = |the parameter to {%A1k%a} must be a variable or constant, seen {%2ad}| Length (out) = 0 len = 69 highplus1 = 2*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_FINISH | m2rte cc1gm2: internal compiler error: in libc_abort, at m2/mc-boot-ch/Glibc.c:70 Might be a general problem when using builtin functions (replacing ORD by CHR gives the same ICE). Maybe a similar problem as in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110189