I tried compiling with all three, unfortunately it didn't help.
I downloaded the builds
here. They aren't official, I know, but I've never had any problems with those...
gcc --version outputs what you'd expect it to:
4.6:
gcc.exe (MinGW-builds:
https://sourceforge.net/projects/mingwbuilds/) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
4.7:
gcc.exe (MinGW-builds:
https://sourceforge.net/projects/mingwbuilds/) 4.7.1 2012
0425 (prerelease)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
4.8:
gcc.exe (MinGW-builds:
https://sourceforge.net/projects/mingwbuilds/) 4.8.0 2012
0425 (experimental)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I "fixed" the problem, by rewriting my code to use your threading library and constructing a condition_variable class and then compiling with 4.6-DWARF2. Still I feel it's a dirty work-around