From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F34783858404; Wed, 19 Apr 2023 08:09:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F34783858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681891748; bh=V3dah34F2PvuOuuLsNy32m8xc6oPlvDNPH6acML70s8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OZGBgFLt2sGBky/B6fZRWV8IeJiXHPIIc420eAauVl+3wbdIaWqNt7+yjhJqBnNBE LYp6rJUbfARPqbTk6OmnYik5cdHreICMk4DrSsUAvQNXn90ivbukFd4WbhAy2pvj5i XSryUvBET8eahfdj1M5Ly3urV5Jhf3JY9mLXNq1g= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre Date: Wed, 19 Apr 2023 08:09:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.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=3D109524 --- Comment #13 from CVS Commits --- The releases/gcc-13 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:865d712a9a20eed444ce61a0a0106534479bedf1 commit r13-7224-g865d712a9a20eed444ce61a0a0106534479bedf1 Author: Jakub Jelinek Date: Wed Apr 19 10:01:04 2023 +0200 testsuite: Fix up pr109524.C for -std=3Dc++23 [PR109524] This testcase was reduced such that it isn't valid C++23, so with my usual testing with GXX_TESTSUITE_STDS=3D98,11,14,17,20,2b it fails: FAIL: g++.dg/pr109524.C -std=3Dgnu++2b (test for excess errors) .../gcc/testsuite/g++.dg/pr109524.C: In function 'nn hh(nn)': .../gcc/testsuite/g++.dg/pr109524.C:35:12: error: cannot bind non-const lvalue reference of type 'nn&' to an rvalue of type 'nn' .../gcc/testsuite/g++.dg/pr109524.C:17:6: note: initializing argument= 1 of 'nn::nn(nn&)' The following patch fixes that and I've verified it doesn't change anything on what the test was testing, it still ICEs in r13-7198 and passes in r13-7203, now in all language modes (except for 98 where it is intentionally UNSUPPORTED). 2023-04-19 Jakub Jelinek PR tree-optimization/109524 * g++.dg/pr109524.C (nn::nn): Change argument type from nn & to const nn &. (cherry picked from commit 794ffdb0fb6312ce07af0bfc797bef9f4cff4c61)=