Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-static5.C
bloba401cc0b890125f9db560008ec417df2a203c40b
1 // { dg-options -std=c++0x }
3 template <class T>
4 struct A
6   constexpr static T t = T();   // { dg-error "literal" }
7 };
8 template <class T>
9 constexpr T A<T>::t;
11 struct B
13   ~B();
16 B b = A<B>::t;