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++/51242] New: Unable to use strongly typed enums as bit fields


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51242

             Bug #: 51242
           Summary: Unable to use strongly typed enums as bit fields
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: volodya@netfolder.ru


In case of use strongly typed enumS as bit fields of structS in C++0x mode,
compiler says "bit-field 'smth' with non-integral type".

Though, the standard says "A bit-ïeld shall have integral or enumeration type
(3.9.1)."


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