re PR c++/60056 ([C++11] ICE in var_defined_without_dynamic_init, at cp/decl2.c:2876 with TLS static)

2015-01-16  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60056
	* g++.dg/tls/thread_local-ice4.C: New.

From-SVN: r219760
This commit is contained in:
Paolo Carlini 2015-01-16 17:47:43 +00:00 committed by Paolo Carlini
parent 6e6cb47146
commit 39dac19e28
2 changed files with 25 additions and 1 deletions

View File

@ -1,9 +1,14 @@
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.

View File

@ -0,0 +1,19 @@
// 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;
}