[Bug libstdc++/38365] Locale, constructed from named and unnamed locales, become named
paolo dot carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 2 13:35:00 GMT 2008
------- Comment #6 from paolo dot carlini at oracle dot com 2008-12-02 13:34 -------
(In reply to comment #5)
> (In reply to comment #4)
> > Your patch fixes the problem at the level of the locale constructor, but why do
> > not fix this problem at the level of _M_replace_categories() instead?
>
> Because that would not work, _M_impl has already a name ("C") by that time.
Sorry, now I see that the involved _Impl constructor clones, thus creates an
unnamed clone if the original one is unnamed, thus the idea can work.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38365
More information about the Gcc-bugs
mailing list