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

            Bug ID: 128797
           Summary: ICE (Internal Compiler Error) on malformed operator
                    (erroneous nulladic operator)
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: algol68
          Assignee: algol68 at gcc dot gnu.org
          Reporter: jpl.algol68 at gmail dot com
  Target Milestone: ---

Defining an erroneous operator leads to an internal compiler error.
The operator BAR is a nulladic operator (taking no argument) which is not a
valid Algol 68 construction (IIUC).

Example code:

begin
  op FOO = (real x) real: 1.11;
  op BAR = real: 2.22;

  real y := FOO(0.0);
  real z := BAR(0.0);
  skip
end


Resulting message:

a681: internal compiler error: Segmentation fault
0x2a7a73f internal_error(char const*, ...)
        /home/user/Sources/gcc-master/gcc/diagnostic-global-context.cc:787
0x11f8f0f crash_signal
        /home/user/Sources/gcc-master/gcc/toplev.cc:325
0x7f3c5189310f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0xb22912 search_table_for_operator

Reply via email to