Re: C++ PATCH for middle-end/58624 (thread_local static data member)

2014-11-28 Thread Jakub Jelinek
On Tue, Aug 26, 2014 at 03:38:43PM -0400, Jason Merrill wrote: > commit ccf3f3b41516b34d7d564bed1b3f4e3cf270e43a > Author: Jason Merrill > Date: Tue Aug 26 13:56:17 2014 -0400 > > PR c++/58624 > * pt.c (tsubst_decl) [VAR_DECL]: Copy TLS model. > (tsubst_copy_and_build) [VAR_DE

C++ PATCH for middle-end/58624 (thread_local static data member)

2014-08-26 Thread Jason Merrill
This PR points out an ICE caused by thread_local on static data members, which we weren't handling properly at all. There is still the issue that calling set_decl_tls_model on a template variable adds it to the symbol table, causing problems later on, but this patch fixes the front end handlin