https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108973
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[13 Regression] |[10/11/12 Regression] |Sufficiently narrow |Sufficiently narrow |terminal window causes |terminal window causes |selftest failure |selftest failure Target Milestone|13.0 |10.5 --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Fixed on the trunk so far. Just tried 10 branch and it ICEs in self-tests with COLUMNS=41 as well: $ ./xgcc -B ./ -v Reading specs from ./specs COLLECT_GCC=./xgcc COLLECT_LTO_WRAPPER=./lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../configure --disable-bootstrap --enable-checking=yes --enable-languages=c,c++,fortran : (reconfigured) Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.4.1 20220628 (GCC) $ COLUMNS=41 ./xgcc -B./ -B/usr/local/x86_64-pc-linux-gnu/bin/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include -L/usr/src/gcc-10/obj/gcc/../ld -xc -nostdinc /dev/null -S -o /dev/null -fself-test=../../gcc/testsuite/selftests ../../gcc/diagnostic-show-locus.c:3949: test_add_location_if_nearby: FAIL: ASSERT_STREQ (" struct same_line { double x; double y; ;\n" " ~ ^\n", pp_formatted_text (dc.printer)) val1=" struct same_line { double x; double y; ; ~ ^ " val2=" truct same_line { double x; double y; ; ~ ^ " cc1: internal compiler error: in fail_formatted, at selftest.c:63 0x21a3a86 diagnostic_impl ../../gcc/selftest.h:1309 0x21a541a internal_error(char const*, ...) ../../gcc/selftest.h:1711 0x21a5678 fancy_abort(char const*, int, char const*) ../../gcc/selftest.h:1778 0x219d50b selftest::fail_formatted(selftest::location const&, char const*, ...) ../../gcc/selftest.h:63 0x219d5fa selftest::assert_streq(selftest::location const&, char const*, char const*, char const*, char const*) ../../gcc/selftest.h:92 0x21b2fb6 test_add_location_if_nearby ../../gcc/../libcpp/include/cpplib.h:3949 0x21dd17a selftest::for_each_line_table_case(void (*)(selftest::line_table_case const&)) ../../gcc/../libcpp/include/cpplib.h:3573 0x21b95ea selftest::diagnostic_show_locus_c_tests() ../../gcc/../libcpp/include/cpplib.h:5022 0x20d83f9 selftest::run_tests() ../../gcc/wide-int-bitmask.h:96 0x11ae133 toplev::run_self_tests() ../../gcc/flags.h:2351 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.