https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #7)
> static __typeof 0 a __attribute__ ((__weakref__ ("")));
> template <typename> class A
> {
>   static __thread int b;
> };

The problem with this testcase is that set_decl_tls_model adds A<T>::b, an
uninstantiated template, to the symbol table.  This ICE was introduced by
honza's r211689.

I'll deal with the other testcase.

Reply via email to