This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51242] New: Unable to use strongly typed enums as bit fields
- From: "volodya at netfolder dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 20 Nov 2011 18:41:15 +0000
- Subject: [Bug c++/51242] New: Unable to use strongly typed enums as bit fields
- Auto-submitted: auto-generated
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)."