1 2 3 4
// PR c++/60190 // { dg-do compile { target c++1y } } auto f = []<int>() -> int() {}; // { dg-error "returning a function|expected" }