1 // PR c++/53484 2 // { dg-do compile { target c++11 } } 3 4 template<class T,class U> struct ST; 5 template<class T> struct ST<T,T> {}; 6 7 template <class T> 8 void f(T x){ 9 [&]{ 10 auto y = x; 11 ST<decltype(y),int>(); 12 }(); 13 } 14 15 int main(){ f(0); } 16