summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-static5.C
blob: cb553a25fe8b48d78f8c8b12764881480a99378c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-options -std=c++0x }

template <class T>
struct A
{
  constexpr static T t;
};
template <class T>
constexpr T A<T>::t = T();	// { dg-error "not literal" }

struct B
{
  ~B();
};

B b = A<B>::t;