/cp
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-static5.C
blobd161cf5445c5dddcf63b4853f02a28adf26c09ad
1 // { dg-do compile { target c++11 } }
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;