http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49316
--- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-10-26 09:22:41 UTC --- > --- Comment #2 from Graham Reed <greed at pobox dot com> 2011-10-25 20:04:32 > UTC --- > This may be the same fault I'm seeing on AIX with GCC 4.6.1--does Tru64 use an > "emulated TLS" as well? It does: while the platform could support native TLS, it is so different from the usual ELF implementations that it hasn't been implemented in gcc. > I reduced diag-1.C to this: > > template <typename T> struct B { static __thread T t; }; > template <typename T> __thread T B<T>::t = 42; > void bar () { int j = B<int>::t; } I get the same ICE on that testcase with trunk as of r180287. Rainer