// { dg-do compile { target c++1y } } template struct ST; template struct ST {}; int j; auto x3 = []()->auto&& { return j; }; // OK: return type is int& int main() { ST(); }