OSDN Git Service

* call.c (type_decays_to): Check MAYBE_CLASS_TYPE_P instead of
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-uneval.C
1 // 5.1.2/2: A lambda-expression shall not appear in an unevaluated operand.
2 // { dg-options "-std=c++0x" }
3
4 template <class T>
5 struct A { };
6 A<decltype([]{ return 1; }())> a; // { dg-error "lambda.*unevaluated context" }
7