From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A39683858CD1; Wed, 22 Nov 2023 00:37:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A39683858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700613445; bh=UVdpJsTXU7YEh/ArD0Xb5UgFSEhdzkI3liJIiqLnj98=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fW+zbcBSURjR4imvoNS3k0GQfISpXFLpBKJGtyfR2KqY6L4lAUtuwUqyJuHKatYvU FQYKfI8Sh4oR3N9AZAxXtvjlo8chV9T3FYejncxkVmbT0ur450iTxcyn3p1mX76XYz 1zzuFIQ7IhX7lifSkPwGKkgTvw53seFos6pvhNcg= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112658] [12/13/14 Regression] ICE: finish_expr_stmt with casting an temp array to pointer and constructor call Date: Wed, 22 Nov 2023 00:37:23 +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.2.1 X-Bugzilla-Keywords: ice-on-valid-code, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to keywords bug_status 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=3D112658 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot g= nu.org Keywords|needs-bisection |wrong-code Status|NEW |ASSIGNED CC| |ppalka at gcc dot gnu.org --- Comment #5 from Patrick Palka --- The ICE-on-valid started with r12-2233-gb9119edc09e466, but before that this was wrong-code: bool called; struct foo{ foo(const int *new_mac) { called =3D true; } }; typedef int t[1]; int main() { foo f((int*)t{ 0xFC}); if (!called) __builtin_abort(); } If we do copy initialization instead of direct initialization then we ICE e= ver since the sanity check assert was added in r6-6795-g0fd9d4921f7ba2=