From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8D1A13857C76; Tue, 21 Nov 2023 22:26:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D1A13857C76 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700605599; bh=Qri1LPTSUSBBNJUWJnC7nRQZwDmgLmG+vzdXcCxtCNU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=t2jAPyXPt+PCMbozMh73YGaDTBE+c92o6p99LAH/DzZndxIVKvxGWSfY7cbv9Fs38 mTenydGLcvTIg95oNLqU6yk8SJlbuA/mwfqbN0X0uKlaNUDBo/n/Ta6yOew2plny4n 0IQq39j84PQqOX3dqC7n+lZvL0dkZTRoZfEJuHes= From: "pinskia 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 Date: Tue, 21 Nov 2023 22:26:39 +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 X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc 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 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[12/13/14 Regression] ICE: |[12/13/14 Regression] ICE: |finish_expr_stmt , at |finish_expr_stmt with |cp/semantics.cc:892 |casting an temp array to | |pointer --- Comment #2 from Andrew Pinski --- Here is a better testcase: ``` struct foo{ foo(const int *new_mac); }; typedef int t[1]; void g(){ foo f((int*)t{ 0xFC}); } ``` Which is definitely valid code.=