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

            Bug ID: 110189
           Summary: Using an unknown TYPE as argument to VAL gives 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: ---

In the following example:

MODULE foo;

VAR x: INTEGER;

BEGIN
  x := VAL(abcd, 0);
END foo.

I get:

M2MetaError.mod:1535:internalformat error detected


errorBlock

type      = abort
out       = ||
in        = |undeclared type found in builtin procedure function {%AkVAL}
{%A1ad}|
Length (out) = 0
len       = 68
highplus1 = 1*** 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
0x195d5c6 internal_error(char const*, ...)
        ???:0
0x6f0e97 fancy_abort(char const*, int, char const*)
        ???:0
0x6aa497 libc_abort
        ???:0
0x808f05 FormatStrings_Sprintf1
        ???:0
0x767c73 M2Printf_fprintf1
        ???:0
0x76da13 M2MetaError_MetaErrorStringT1
        ???:0
0x786078 M2Quads_BuildFunctionCall
        ???:0
0x7e59d9 P3Build_CompilationUnit
        ???:0
0x75ba6b M2Comp_compile
        ???:0

Reply via email to