[Bug libstdc++/25409] STL mt_allocator crash in global construcutor
bkoz at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Mar 3 18:03:00 GMT 2006
------- Comment #2 from bkoz at gcc dot gnu dot org 2006-03-03 18:03 -------
>I've also found that, instead, the semi-documented '-pthread'
>compilation [from the above PR] option makes things work OK too
It is a good idea to use -pthread when compiling code that uses threads on
linux.
I cannot reproduce your example with 4.1.0, or mainline, on linux.
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25409
More information about the Gcc-bugs
mailing list