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++/25409] STL mt_allocator crash in global construcutor



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


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