1 // 5.1.2/2: A lambda-expression shall not appear in an unevaluated operand.
2 // { dg-do compile { target c++11 } }
6 A<decltype([]{ return 1; }())> a; // { dg-error "lambda.*unevaluated context" }
8 // { dg-prune-output "template argument" }
9 // { dg-prune-output "invalid type" }