From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A41043858D39; Tue, 27 Sep 2022 00:57:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A41043858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664240235; bh=XI83X8ZSLXj72X9popCHkmAkmr4weSGIsXuyjqjUNfY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TdHjd9Tnhbwdbx6nWRdqbTkr/c3Knns9R4yeDGNox3w8kBxYj/+I9MesnwptRfNFQ lH1efOw1Cp7DH0KCE+NXG8BVWxM2093MWwmROGEJdqkzq+CbkOC1QPap6zLvybo+xZ gAnP4XA4x42Z24xyVmIcXwuC+XtDdNTsjVbVKUFQ= From: "alex at clmbng dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107024] ICE in finish_expr_stmt, at cp/semantics.cc:872 Date: Tue, 27 Sep 2022 00:57:06 +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: 12.2.1 X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: alex at clmbng dot com 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: --- 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=3D107024 --- Comment #3 from alex at clmbng dot com --- Minimal test-case: struct A { int fun(); }; template =20 consteval auto aaa() { return A{}; } template =20 using aa =3D decltype(aaa<[]{}>()); template =20 A a =3D aa{}; int main()=20 { return a<42>.fun(); }=