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++/21560] #pragma(1) doesn't work on the inner classes inside the temlated class


------- 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


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