From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 50A673858C53; Wed, 14 Jun 2023 04:04:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50A673858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686715470; bh=+2JOrTD3k9sYMNLyVLqtbIITJI4VyGsMhLiynO5g6nw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=c6llfEMXNbQzVS1XUnOFW8sLwvGBz8ft3IwA55y6vXNvz0plpyU915waztsxYiUYp UxCoQMc60kKobt76uWIsCkL40qB8DmI2KZECXVEWDinkTq1FRwz5rWSYBgpU3pdnn6 cMAndjxta94fGmcA7TC+iqXOvLQsp4GpaKql0QmQ= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110245] constant evaluation fails with uninitialized union and default constructor Date: Wed, 14 Jun 2023 04:04:30 +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: 14.0 X-Bugzilla-Keywords: rejects-valid 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: 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=3D110245 --- Comment #2 from Andrew Pinski --- So if I read: https://cplusplus.github.io/CWG/issues/2558.html there is sti= ll an open question about "Union types shall be initialized such that they hav= e an active member in the result of a constant expression" but I am not 100% sure here.=