This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19508] [4.0 regression] dwarf2, ICE on __attribute__(aligned) in class template
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jan 2005 12:26:34 -0000
- Subject: [Bug c++/19508] [4.0 regression] dwarf2, ICE on __attribute__(aligned) in class template
- References: <20050118164428.19508.jan@etpmod.phys.tue.nl>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2005-01-20 12:26 -------
> Paolo, I think I'm going to have a warning like this:
Well, if I understand well the current status, we *must* warn the user about
that. And, of course, I believe the current (for 4.0, that is) usage in tr1/
type_traits will *not* trigger the warning, because is ok. Indeed, I see the
alignment request respected in this kind of situation:
template<std::size_t _Len>
struct aligned_storage<_Len, 1>
{
union type
{
unsigned char __data[_Len];
char __align __attribute__((aligned(1)));
};
};
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19508