[Bug c++/51242] New: Unable to use strongly typed enums as bit fields

volodya at netfolder dot ru gcc-bugzilla@gcc.gnu.org
Sun Nov 20 19:55:00 GMT 2011


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-field shall have integral or enumeration type
(3.9.1)."



More information about the Gcc-bugs mailing list