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] [4.2 Regression] bitfield enum handling regression



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-05-09 06:17 -------
Confirmed, reduced testcase:
enum EBorderStyle
{
  BNATIVE, BHIDDEN
};
struct BorderValue
{
  enum EBorderStyle style:8;
};
enum EBorderStyle f(const struct BorderValue *border)
{
    return border ?  border->style : BNATIVE;
}
------------------------

I forgot if enum bitfields are a GNU extension for C++ (I know they are for C)


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-05-09 06:17:50
               date|                            |


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]