From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 052A73857702; Thu, 26 Oct 2023 00:19:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 052A73857702 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698279571; bh=35UkZ7spi9mz1jIP5SaJSFhXx0M4hd0hYIVbI3PpwD4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GQjMlm1POh554DeUvUFGuzvI1+Mt5u1IEMhc8xNyV7+WKjPJpR0ZizP3CfW5mUqdR AMv6Q5u1Z4LNNE+aS/la+VjLk/hjuNQKOQp8V4GCbLy2L4QWggAJcLHro70/8597D7 9FlbXC3DlOmwOahHHsHfiQKczcm72iUHM5MdRfrs= From: "nathanieloshead at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101631] gcc allows for the changing of an union active member to be changed via a reference Date: Thu, 26 Oct 2023 00:19:28 +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: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: nathanieloshead at gmail dot com 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=3D101631 --- Comment #6 from Nathaniel Shead --- (In reply to Sam James from comment #5) > Fixed for 14 then by the drive-by bit or is there something left? It should be fixed now. The example in comment #2 is g++.dg/cpp2a/constexpr-union2.C.=