From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B1CDB3858D32; Mon, 30 Jan 2023 20:13:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B1CDB3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675109586; bh=lTG1Ly1a2eeKyrOhM+d7KdYukrhRpK3R9pr1IbE/Zsc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iXuOJYokKX/V3w61qWr/ob3/CKhHQ9ZJbauhMelf2ZSiRze6j7t2cxIsqRcKgGU+d cmADjIORKPwnpm/qi8y/GkXiy9+qylL0UcoEmc2M35HxJTeXS1FCKjybX/ZzEEudE/ 7s/gDMKsFAu2C3B8gVBqsJcvBWJM5AKCvzY1TOHc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108606] [13 Regression] ICE in potential_constant_expression_1 with friend function declaration inside a local class of a generic/templated lambda Date: Mon, 30 Jan 2023 20:13: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: 13.0 X-Bugzilla-Keywords: c++-lambda, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: 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=3D108606 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[13 Regression] ICE in |[13 Regression] ICE in |potential_constant_expressi |potential_constant_expressi |on_1, at |on_1 with friend function |cp/constexpr.cc:9713 |declaration inside a local | |class of a | |generic/templated lambda --- Comment #1 from Andrew Pinski --- Reduced testcase: auto t =3D=20 [](int) { class C { friend void h(); }; };=