This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/31117] c++locale.o thread-unsafe in libstdc++
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2007 01:24:50 -0000
- Subject: [Bug libstdc++/31117] c++locale.o thread-unsafe in libstdc++
- References: <bug-31117-9156@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from pcarlini at suse dot de 2007-03-15 01:24 -------
(In reply to comment #11)
> Honestly, I don't think that makes sense. Did you *really* test it? Because, as
> far as I can see, the cc file at issue includes the whole <locale>, which, in
> turn, includes <bits/c++locale.h>, which is a link to
> config/locale/generic/c_locale.h in the sources, which includes <clocale>
> anyway.
Ah, before, you said should be before <cerrno>. Anyway, it's not clear to me
why including <clocale> before <cerrno> changes its behavior, that dependency
on the order is never supposed to happen for a sane set of headers, right? Did
you analyze where exactly in the <clocale> header the CPP symbol is defined? By
the way, which exact symbol?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31117