This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21560] #pragma(1) doesn't work on the inner classes inside the temlated class
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 May 2005 23:01:40 -0000
- Subject: [Bug c++/21560] #pragma(1) doesn't work on the inner classes inside the temlated class
- References: <20050513225111.21560.yuri@tsoft.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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