* parser.c (cp_parser_lambda_expression): Unset OK if there was an error parsing the lambda-declarator. From-SVN: r238563
9 lines
144 B
C
9 lines
144 B
C
// PR c++/70781
|
|
// { dg-do compile { target c++11 } }
|
|
|
|
template < typename T >
|
|
void foo ()
|
|
{
|
|
T ([=] (S) { [=] {}; }); // { dg-error "" }
|
|
}
|