From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 095063858C83; Tue, 16 May 2023 19:13:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 095063858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684264382; bh=BXH8WvmYPWs76wTCPWuq5+Xu0L9K9wJozgNnBSFPFEQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Rc0iyGoEJe8T0kX0qYksyPfvMXM7iiP12rWMI9pu1iufULzMxe+gIc9vd9/Mhcslf GY4c6j7eK8qZoeLPT/uFaSOycRl39kkPpPWVdUXUaHtyHHh6z9j0/5dnPe/52Ixi3K 3cBJ29wtUiOCrnYdFlbLZm9dDTBukGPlTk7nVP2I= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109876] [10/11/12/13/14 Regression] initializer_list not usable in constant expressions in a template Date: Tue, 16 May 2023 19:13:01 +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.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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: 10.5 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=3D109876 --- Comment #4 from Marek Polacek --- On trunk we no longer create a static temporary var for { 1, 2 }, because t= he code in finish_compound_literal is now guarded by '&& fcl_context =3D=3D fc= l_c99' but it's fcl_functional here.=