This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27506] New: [4.2 Regression] bitfield enum handling regression
- From: "mueller at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 May 2006 19:36:24 -0000
- Subject: [Bug c++/27506] New: [4.2 Regression] bitfield enum handling regression
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
the following testcase no longer compiles:
=== Cut ===
enum EBorderStyle
{
BNATIVE, BHIDDEN
};
class BorderValue
{
public:
EBorderStyle style:1;
};
struct CollapsedBorderValue
{
EBorderStyle style () const
{
return border ? border->style : BNATIVE;
}
const BorderValue *border;
};
=== Cut ===
--
Summary: [4.2 Regression] bitfield enum handling regression
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: critical
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mueller at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27506