1 // { dg-do compile { target c++11 } } 2 3 template <typename T> 4 struct Handle 5 { 6 Handle(T& t); 7 }; 8 9 template<class T> 10 struct Class { 11 struct Struct {} data; 12 void f(); 13 void g(); 14 }; 15 16 template<class T> f()17void Class<T>::f() { 18 Handle< decltype((data)) > handle(data); 19 } 20 21 template<class T> g()22void Class<T>::g() { 23 Handle< decltype((data)) > handle(data); 24 } 25