From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 337293858C62; Thu, 9 Feb 2023 00:23:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 337293858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675902230; bh=0BPGsKxiq83uC/xCFsQvGVuX57iTzFgBCfNhseCOn6I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AOcyYtyorreRCo58kn6Bm9saMr0PWCpW0djTqJuZ4EN69vJzsaatgm3QFrHoObDd4 rjdnAdiZsi3bSS/u4ziaYhH+cos7lmahdB9Zp9/Isbm5UuonlaPFYUSqz1INgog7df i1ER0ooNnqts2cholqwFx5CMLotxD5Cg63Enmcbo= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101588] [DR2126] rejects valid constexpr when binding from a constexpr function and initializer_list Date: Thu, 09 Feb 2023 00:23:49 +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: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed cf_reconfirmed_on cc bug_status 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=3D101588 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2023-02-09 CC| |mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #3 from Marek Polacek --- This came up again in bug 107079. The static_assert should pass after fixi= ng bug 107079 but doesn't because we don't fully implement the -- a temporary object of non-volatile const-qualified literal type whose lifetime is extended ([class.temporary]) to that of a variable that is usab= le in constant expressions, or bullet. struct X { const X* x =3D this; }; constexpr const X& x =3D X{}; static_assert(x.x =3D=3D &x);=