This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/25409] STL mt_allocator crash in global construcutor
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2006 18:03:09 -0000
- Subject: [Bug libstdc++/25409] STL mt_allocator crash in global construcutor
- References: <bug-25409-4681@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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