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