/****** sample code begin ****/ #include <cstdio> struct S { S(){ std::puts("ctor"); } ~S(){ std::puts("dtor"); } };
int main(){ thread_local S s; } /****** sample code end ****/ E:\Desktop>g++ test.cpp -std=c++11 E:\Desktop>a ctor dtor /****** Crashes here ****/ E:\Desktop>g++ test.cpp -std=c++11 -static E:\Desktop>a ctor dtor /****** This does not crash ******/ E:\Desktop>g++ -v /****** omitted ******/ Thread model: win32 gcc version 4.9.0 20140218 (experimental) (i686-win32-sjlj, Built by MinGW-W64 project) Any ideas? -------------- Best regards, lh_mouse 2014-04-06 ------------------------------------------------------------------------------ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public