------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-13 
23:01 -------
Confirmed, here is a compile time testcase instead of a runtime:
template<typename C> struct Z {
#pragma pack(1)
  union Packed {
    struct {
     int dx:2;
     int dy:2;
    };
    unsigned char byte;
  };
#pragma pack()
};

int f[sizeof(Z<int>::Packed)==1?1:-1];

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
      Known to fail|                            |2.95.3 3.3.3 3.4.3 4.0.0
                   |                            |4.1.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-13 23:01:39
               date|                            |


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

Reply via email to