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++/27506] New: [4.2 Regression] bitfield enum handling regression


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


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