// 5.1.2/2: A lambda-expression shall not appear in an unevaluated operand. // { dg-do compile { target c++11 } } template struct A { }; A a; // { dg-error "lambda.*unevaluated context" } // { dg-prune-output "template argument" } // { dg-prune-output "invalid type" }