1 // { dg-do compile { target c++14 } } 2 3 template<class,class> struct ST; 4 template<class T> struct ST<T,T> {}; 5 6 int j; 7 auto x3 = []()->auto&& { return j; }; // OK: return type is int& 8 9 int main() 10 { 11 ST<decltype(x3()),int&>(); 12 } 13