// PR c++/69000 // { dg-do compile } // { dg-require-effective-target tls } class A {}; template struct B { static int *& foo () { static __thread int *c = 0; return c; } }; B d; void bar () { d.foo (); }