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.
Confirmed. a Regression from GCC 10.
Fixed on master with r12-5347-g2c2148d8c144d738, and started with r11-3303-g6450f07388f9fe57.
GCC 11.4 is being released, retargeting bugs to GCC 11.5.