URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [lambda/] [lambda-uneval.C] - Rev 338
Compare with Previous | Blame | View Log
// 5.1.2/2: A lambda-expression shall not appear in an unevaluated operand.
// { dg-options "-std=c++0x" }
template <class T>
struct A { };
A<decltype([]{ return 1; }())> a; // { dg-error "lambda.*unevaluated context" }