lh_mouse писал 2014-04-06 18:43: > /****** 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) please try i686-posix-sjlj.
-- Regards, niXman ___________________________________________________ Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingw-w64/ ___________________________________________________ Another online IDE: http://liveworkspace.org/ ------------------------------------------------------------------------------ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public