From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6722 invoked by alias); 7 Nov 2012 11:05:38 -0000 Received: (qmail 6635 invoked by uid 48); 7 Nov 2012 11:05:20 -0000 From: "paolo.carlini at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54922] [C++11][DR 1359] constexpr constructors require initialization of all union members Date: Wed, 07 Nov 2012 11:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo.carlini at oracle dot com X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Status Resolution AssignedTo Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg00566.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54922 Paolo Carlini changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | AssignedTo|paolo.carlini at oracle dot |unassigned at gcc dot |com |gnu.org --- Comment #7 from Paolo Carlini 2012-11-07 11:05:20 UTC --- Patch is reverted for now. The fix wasn't correct (or was incomplete), as showed by the testcase: class nullable_int { bool init_; union { unsigned char for_value_init; int value_; }; public: constexpr nullable_int() : init_(false), for_value_init() {} }; int main() { nullable_int n; }