2015-01-16 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60056
* g++.dg/tls/thread_local-ice4.C: New.
From-SVN: r219760
+2015-01-16 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/60056
+ * g++.dg/tls/thread_local-ice4.C: New.
+
2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
* g++.dg/abi/mangle-abi-crypto.C: Add crypto options, rather
than Neon options.
-2014-01-16 Paolo Carlini <paolo.carlini@oracle.com>
+2015-01-16 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/62276
* g++.dg/cpp0x/vt-62276.C: New.
--- /dev/null
+// PR c++/60056
+// { dg-do compile { target c++11 } }
+// { dg-require-effective-target tls }
+
+template<typename T>
+class Foo {
+public:
+ Foo() {
+ ++c;
+ }
+private:
+ thread_local static int c;
+};
+
+template<typename T> thread_local int Foo<T>::c(0);
+
+int main(){
+ Foo<int> o;
+}