This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] Fix Werror breakage (maintainer-mode)


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]