------- Comment #6 from chris at bubblescope dot net 2009-10-09 14:16 ------- Ah yes, something I should have tried earlier.
The resulting compiler generally works fine, until I add -D_GLIBCXX_PARALLEL, when things break. I only seem to get a problem when I have enough optimisation to inline functions. -O0 works fine -O1 breaks -O1 -fno-inline works fine Which is a shame, as it makes debugging that much harder. The same problem occurs with _GLIBCXX_DEBUG, so actually this isn't related to parallel, sorry for the false alarm. I assume it's related to extern templates, but I'm not sure how exactly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41645