This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/56155] [C++0X] enumeration with fixed underlying type - enumerators have wrong type within enumerator-list


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]