1 // PR c++/55003
2 // { dg-do compile { target c++11 } }
3 
4 template<typename T>
5 struct A {
6   static const auto t
7     = (typename T::type)42;
8 };
9 
10 struct X {
11   typedef int type;
12 };
13 
14 A<X> a;
15