1// { dg-do compile { target c++11 } }
2
3struct B
4{
5  constexpr operator int() const { return 4; }
6};
7
8template <int I>
9struct C;
10
11template<>
12struct C<4> { typedef int TP; };
13
14template <class T>
15struct A
16{
17  constexpr static B t = B();
18  C<t>::TP tp;
19};
20
21A<B> a;
22