------- Comment #6 from pinskia at gcc dot gnu dot org  2010-09-03 01:13 -------
You can use a GCC extension of anonymous structs:
struct bfa {
      union {
            struct {
            unsigned int a : 1,
               b : 4;
            };
            unsigned int data;
      };
};

To get the behavior you want.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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

Reply via email to