From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19433 invoked by alias); 30 Jan 2013 17:35:38 -0000 Received: (qmail 16952 invoked by uid 48); 30 Jan 2013 17:35:22 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56155] [C++0X] enumeration with fixed underlying type - enumerators have wrong type within enumerator-list Date: Wed, 30 Jan 2013 17:35: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Last reconfirmed Summary Ever Confirmed 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: 2013-01/txt/msg02797.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56155 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-01-30 Summary|[C++0X] enumeration with |[C++0X] enumeration with |fixed underlying type - |fixed underlying type - |enum literals have wrong |enumerators have wrong type |type |within enumerator-list Ever Confirmed|0 |1 --- Comment #1 from Jonathan Wakely 2013-01-30 17:35:21 UTC --- The type of the enumerator is only wrong within the enumerator-list, once the enumeration declaration is complete sizeof(Z_) is 1 as expected.