This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
RE: [v3] Fix Werror breakage (maintainer-mode)
Gabriel Dos Reis wrote on 06 July 2008 20:34:
> On Sun, Jul 6, 2008 at 7:51 AM, Richard Guenther
> <richard.guenther@gmail> wrote:
>> The code does
>>
>> typedef char fake_locale[sizeof(locale)]
>> __attribute__ ((aligned(__alignof__(locale))));
>> fake_locale c_locale;
Say, isn't it invalid (or of uncertain validity) to place alignment
attributes on typedefs like that?
> Notice that this idiom may become common place, now that C++0x has alignas
> (the moral equivalent of GNU C++'s attribute above), along with the
> library aligned_storage<> template.
Hopefully that wouldn't suffer the same complications?
cheers,
DaveK
--
Can't think of a witty .sigline today....