// PR c++/56447 // { dg-do compile { target c++11 } } template void f() { int i; // This lambda should not have a conversion op, since it captures i int (*p)() = [=]{ return i; }; // { dg-error "cannot convert" } } int main() { f(); }