This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/31117] c++locale.o thread-unsafe in libstdc++



------- 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


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