From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 883313858004; Fri, 13 Jan 2023 12:35:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 883313858004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673613321; bh=kSf6ctfFG5zdCZ/grfckwZ7kht/cK2zm9WAXysldwhg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Mv/ApyGaQWfIjqks1FDERqddmp878hTDEi2snssFClPBa+WKTSSSFLWJeBl/qtGXo lJCbpCkCGzyKg99B9Q4dgstoNreZl04sBqMInsEQCfkgI4T2hYOyp5wRnmyg3xU1CU nLutXwQt484/OZNY2o61eo7T/TsgLbt4xQIczDG0= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107516] [10/11/12/13 Regression] ICE with -fwide-exec-charset=latin1 since r9-2891-g5ec9f8cff333bbe9 Date: Fri, 13 Jan 2023 12:35:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-checking, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority 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=3D107516 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 --- Comment #3 from Richard Biener --- 3416 size =3D int_size_in_bytes (TREE_TYPE (exp)); 3417 gcc_checking_assert (size >=3D 0); 3418 gcc_checking_assert (TREE_CODE (exp) !=3D STRING_CST 3419 || size >=3D TREE_STRING_LENGTH (exp)); (gdb) p size $1 =3D 4 (gdb) p exp->string.length $3 =3D 6 (gdb) p debug_tree (exp) unit-size align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-ty= pe 0x7ffff6428000 precision:32 min max pointer_to_this > type_6 SI size unit-size align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7ffff6428150 domain type_6 DI size unit-size align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-ty= pe 0x7ffff6294d20 precision:64 min max > pointer_to_this > readonly constant asm_written static "ms\000\000\000\000"> (gdb) p debug_generic_expr (0x7ffff6428150) const wchar_t[1] Bernd - I see it as us having an excess 2-byte nul terminator?=