This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Canonical types (1/3)
Paolo Carlini <pcarlini@suse.de> writes:
| Hi Doug,
|
| a quick reply to a couple of specific points of yours.
|
| > Anyway, even with a fix for 19163, you still need to enumerate all of
| > the possible alignment values, right?
|
| I don't think so: see my comment in type_traits. Actually, this is the
| whole point of my message ;) In my opinion this *should* work:
|
| template<std::size_t _Len, std::size_t _Align>
| struct aligned_storage
| { typedef char type[_Len] __attribute__((__aligned__(_Align)));
There is a "namespace" problem with the handling of GCC attributes.
The machinery thinks that _Align is a "built-in" thing, and when we
do instantiation, we don't go other the list of attributes and
substitute.
-- Gaby