From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C4703858413; Wed, 19 Jul 2023 15:14:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C4703858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689779685; bh=3w2Q8QWoJUf2R+R7+autJzjfIIqVZPC5257jwT9zvpM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qkP9Kzwk4z9TFiOFxTxCkFEq98rsiKxSkS94WL5CJJRf9gmSEUPhuSnDJIfwHmuXY 9REgwu5ds85agJxtO+NyCvvygQT+5P4skh+bNDUCTWE7bt8hPMbGaSwZPeZaNB2gNN 7YlR5qvsvJTj+AVYowiObzZUdUiKXmvEzwc5LTj4= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110197] [13/14 Regression] Empty constexpr object constructor erronously claims out of range access Date: Wed, 19 Jul 2023 15:14:44 +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.1.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka 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: 13.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D110197 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #3 from Patrick Palka --- More reduced: struct Currency { constexpr Currency(int) { } }; constexpr int f() { return __builtin_is_constant_evaluated(); }; constexpr Currency _M_elems[1] =3D {Currency{f()}};=