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++/27979] 4.2 Regression] conversion check confused by enum bitfields



------- Comment #2 from tbm at cyrius dot com  2006-06-09 17:47 -------
The following, related example, fails with gcc 4.2 20060508 but works with
20060530.  It would be great if whoever works on this PR could check what
change was responsible to get this working, and if it was just an accidental
change, whether the following test case should be added to the test suite:

enum EBorderStyle {
   BNATIVE, BNONE, BHIDDEN
};

class BorderValue
{
  public:
    EBorderStyle style : 8;
};

class bar
{
    BorderValue *border;
    EBorderStyle foo() { return border ? border->style : BHIDDEN; }
};


-- 


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


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