From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6AD413857703; Wed, 19 Apr 2023 08:04:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6AD413857703 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681891499; bh=Vcw9IIm6VX9eaMfK07/CeWM6wWgutPG08D9R4uE3qvw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TtrZROBn4MWKgsBnTM+IvSgVaI53MUB0YFlTGQx0q7pAiweKR23BI106pNU1F6Ua4 EkePhpj37s62Uk1RJfOW48+xsU8hRdQcwlkenGeX9MXescxqVREKh/BQfi+FTTEs18 8di5itwch1YN2m08w0EhioLSIirU9CBafOBpa4HA= 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:04:58 +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 #12 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:794ffdb0fb6312ce07af0bfc797bef9f4cff4c61 commit r14-59-g794ffdb0fb6312ce07af0bfc797bef9f4cff4c61 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 &.=