From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 436563858436; Fri, 4 Aug 2023 19:02:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 436563858436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691175772; bh=12IiihKzLEWmP93SaUeI2za9gOWyXPfD37iJNUZGSSM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SQb0dFK4N+m2it8REj+Kkh6g040WwUvmtDkthi0TqiOg9AYO17X3gu82tmW1sQe5H sl6cMae4yC1PI6ainKO4U4dWZklLcUcyHDoPw4UmJAkuvGWVL36nqy67fn4YhRWvdO aneIWplNpeu78CZYRhS0UxyyAJKziHK+4cjU4ui0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110905] GCC rejects constexpr code that may re-initialize union member Date: Fri, 04 Aug 2023 19:02:52 +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.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: WAITING 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: cf_reconfirmed_on bug_status everconfirmed 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=3D110905 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-08-04 Status|UNCONFIRMED |WAITING Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski --- >In my more minimal test case the error is more terse and less clear. The reduced testcase is a different issue and is a dup of bug 85944. In the first testcase provided below if we move the static_assert into main instead of the toplevel, it gets accepted. I think you need to redo your reduction.=