From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 52F393858C52; Mon, 19 Feb 2024 23:57:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52F393858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708387050; bh=5JicSi0qUy70XghYCeS7We+CySMmxPOPbe2f9RyMgIY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a7jcMSpfZSEl+pL7lwaKrcihTXuOQx1BfUorkA1sVGsa0IV9cK80fQF/Ya4+e1vio QcXU2yKDbdI6w3Ixnb2pYoMFeF9ZBd87rdNsSqUR6Jcsl+moqQBER69nxkGPfJ1seI D27hEuPBB5FtpnZ8ismIRxjAvkkvd4wqUnCKq/DU= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113994] Probable C++ code generation bug with -O2 on s390x platform Date: Mon, 19 Feb 2024 23:57:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D113994 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- I get g++ -O2 -o pr113994{,.C}; ./pr113994 terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr: __pos (which is 3) > this->size() (which i= s 3) Aborted both with current trunk and with g++ 13.2.1 20231205 on real hw with the Fe= dora defaults, i.e. -march=3Dz13 -mtune=3Dz14.=