[v3] Fix Werror breakage (maintainer-mode)

Eric Botcazou ebotcazou@adacore.com
Mon Jul 7 06:43:00 GMT 2008


> I don't understand why locale_init.cc is giving an aliasing warning at
> all.  The line seems to b
>     return reinterpret_cast<const locale&>(c_locale);
> c_locale is a char array, and as such may be aliased to anything.  Did
> TYPE_NONALIASED_COMPONENT somehow get set for the type of c_locale?

TYPE_NONALIASED_COMPONENT is never set in C/C++.

-- 
Eric Botcazou



More information about the Gcc-patches mailing list