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

            Bug ID: 106702
           Summary: ICE with LTO: internal compiler error: tree code
                    ‘c_maybe_const_expr’ is not supported in LTO streams
           Product: gcc
           Version: 11.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: muecker at gwdg dot de
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

I get this with 11.3.0 but not with 12.

https://godbolt.org/z/6Esa3jhh9


$ gcc-11 --version
gcc-11 (Debian 11.3.0-5) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ cat test.c 

extern void bar(int M, int N, float S[(N > M) ? M : N]);

void foo(int M, int N)
{
        bar(M, N, 0);
}

$ gcc-11 -I ../src/  -flto test.c 
during IPA pass: modref
test.c:8:1: internal compiler error: tree code ‘c_maybe_const_expr’ is not
supported in LTO streams
    8 | }
      | ^
0x7fa316e01209 __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7fa316e012bb __libc_start_main_impl
        ../csu/libc-start.c:389
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.

Reply via email to