From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8EF4A386547E; Wed, 22 May 2024 20:49:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8EF4A386547E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716410957; bh=E1wrF0JyM+F4gfStMuCs+o7+s5Mv+eOkbdjBlkv1TsU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gdo65XD5tTrAVyQAb973nFjRfYXtbD4yts2rvv3yEwq83kQwM2gSMLDmB9+RcJsxJ 6o+5EkQ6woY2z4M/93uGR358wsjJG4nekatQqCDjVKbibOQjC3GZZmh/cY6th3L+Fj hWbA1a3nn0Qa7klnIWieCrYSYeq68BAKmuMx6fsA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/115187] [14/15 Regression] ICE when deleting temporary array Date: Wed, 22 May 2024 20:49:17 +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: 15.0 X-Bugzilla-Keywords: accepts-invalid, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 14.2 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=3D115187 --- Comment #3 from Andrew Pinski --- (In reply to Richard Biener from comment #1)=20 > clang complains: >=20 > t.ii:3:7: error: cannot delete expression of type 'T' (aka 'int[2]') > 3 | delete T{}; > | ^ ~~~ But that might be due to not doing `prvalue array decay`. See PR=20=20=20= =20=20=20=20=20 94264 which I think introduced the ICE here.=