Re: Destructors not called for c++11 thread_local objects

2014-08-01 Thread Corinna Vinschen
On Aug 1 13:41, Larry Hall (Cygwin) wrote: > On 08/01/2014 01:32 PM, Ryan Johnson wrote: > >Hi all, > > > >(Please CC me in replies, I'm not subscribed to the list) > > > >Question: is this a Cygwin bug, gcc bug, or somebody else's bug entirely? > > > >The following STC shows the problem: > > > >$

Re: Destructors not called for c++11 thread_local objects

2014-08-01 Thread Larry Hall (Cygwin)
On 08/01/2014 01:32 PM, Ryan Johnson wrote: Hi all, (Please CC me in replies, I'm not subscribed to the list) Question: is this a Cygwin bug, gcc bug, or somebody else's bug entirely? The following STC shows the problem: $ cat bug.cpp #include static thread_local struct X { int x;

Destructors not called for c++11 thread_local objects

2014-08-01 Thread Ryan Johnson
Hi all, (Please CC me in replies, I'm not subscribed to the list) Question: is this a Cygwin bug, gcc bug, or somebody else's bug entirely? The following STC shows the problem: $ cat bug.cpp #include static thread_local struct X { int x; X() { puts("hi"); } ~X() { puts("bye!"); }