This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56155] [C++0X] enumeration with fixed underlying type - enumerators have wrong type within enumerator-list
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Jan 2013 17:35:21 +0000
- Subject: [Bug c++/56155] [C++0X] enumeration with fixed underlying type - enumerators have wrong type within enumerator-list
- Auto-submitted: auto-generated
- References: <bug-56155-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56155
Jonathan Wakely <redi at gcc dot gnu.org> 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 <redi at gcc dot gnu.org> 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.