From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 532853865490; Thu, 23 May 2024 13:49:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 532853865490 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716472174; bh=kmo8eNVZiyMy4th3dFaNsVqJXvT7v6B3TwHWc+CRb+U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OzoUH3SWDhHdq1BpHrijJmu3vNtWCc6JPglxwdX1j9/99R/n5KN2WO47xSW4smBm0 e/0SOnJ89qvH6KJXv4y820Kd4yT2gDfolKCv2p9ela3s9OM0My9kKJOEVuY1ySMJzF 2HahbnHhDaCbsF2kdFpZuwVH1bgw+7TcwPlksdQE= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/115203] [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 Date: Thu, 23 May 2024 13:49:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: build, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 15.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115203 --- Comment #2 from Tobias Burnus --- Indeed, the suggestion was not to disable the translations in general. A similar issue shows up when running the testsuite. There is it solved by "setenv LANG C" and "setenv LANG C.ASCII" =E2=80=93 while various scripts a= lso use LANG=3DC. Thus, one way would be to have LANG=3DC set somewhere (e.g. via the Makefil= e - assuming it can be done portable). Alternative would be your suggestion to disable it in simple_diagnostic_pat= h. Looking at gcc/intl.cc's gcc_init_libintl, you also need to watch out for open_quote/close_quote and other fun changes as they might come before you switch to to LANG=3DC.=