This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] Fix Werror breakage (maintainer-mode)
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>, libstdc++ at gcc dot gnu dot org
- Date: Mon, 7 Jul 2008 08:25:24 +0200
- Subject: Re: [v3] Fix Werror breakage (maintainer-mode)
- References: <20080706094423.GB29777@ins.uni-bonn.de> <m3y74e442r.fsf@google.com>
> 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