Commit 39dac19e by Paolo Carlini Committed by Paolo Carlini

re PR c++/60056 ([C++11] ICE in var_defined_without_dynamic_init, at…

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
parent 6e6cb471
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.
......
// 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment