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

            Bug ID: 115203
           Summary: [15 Regression] Build fail with non LANG=C in analyzer
                    self test: ICE in fail_formatted at selftest.cc:63 /
                    tree-diagnostic-path.cc:2158: test_control_flow_5:
                    FAIL: ASSERT_STREQ
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: build, ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
  Target Milestone: ---

For some testing, I happened to build with LANG=de_DE.UTF-8
and that was also set when building GCC itself.

That works fine until the analyzer self test - as the strings don't match:

.../build-gcc-trunk-fast/./gcc/xgcc
-B/home/tob/projects/build-gcc-trunk-fast/./gcc/  -xc++ -nostdinc /dev/null -S
-o /dev/null -fself-test=.../gcc/testsuite/selftests
.../gcc/tree-diagnostic-path.cc:2158: test_control_flow_5: FAIL: ASSERT_STREQ
("  events 1-5\n" "FILENAME:1:6:\n" "    1 |   if ((arr = (struct foo **)malloc
[...]
    5 ||    if ((arr[i] = (struct foo *)malloc(sizeof(struct foo))) == NULL) {
      ||            ~                   ~~~~~~~~~~~~~~~~~~~~~~~~~~
      ||            |                   |
      |+----------->(4) ...to here      (5) wurde hier deklariert



cc1plus: interner Compiler-Fehler: in fail_formatted, bei selftest.cc:63

0x22af256 selftest::fail_formatted(selftest::location const&, char const*, ...)
        ../../../repos/gcc/gcc/selftest.cc:63
0x22af301 selftest::assert_streq(selftest::location const&, char const*, char
const*, char const*, char const*)
        ../../../repos/gcc/gcc/selftest.cc:92
0x25b6cd6 selftest::fail_formatted(selftest::location const&, char const*, ...)
        ../../../repos/gcc/gcc/selftest.cc:63
0x25b6d81 selftest::assert_streq(selftest::location const&, char const*, char
const*, char const*, char const*)
        ../../../repos/gcc/gcc/selftest.cc:92
0x10a7b42 test_control_flow_5
        ../../../repos/gcc/gcc/tree-diagnostic-path.cc:2158
0x10aabe6 control_flow_tests
        ../../../repos/gcc/gcc/tree-diagnostic-path.cc:2292
0x13a5512 test_control_flow_5
        ../../../repos/gcc/gcc/tree-diagnostic-path.cc:2158
0x13a85b6 control_flow_tests
        ../../../repos/gcc/gcc/tree-diagnostic-path.cc:2292

Reply via email to