PR c++/70781 - ICE on ill-formed lambda.
authorJason Merrill <jason@redhat.com>
Thu, 21 Jul 2016 06:05:58 +0000 (02:05 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 21 Jul 2016 06:05:58 +0000 (02:05 -0400)
commit172f0e1311f23be40aeb4816f77793dc1317612d
tree014a54747e8583208709b6c6070f0a7219e2cf58
parentdd5dda561e34151f0145d0c0ceabf4d4a14509a3
PR c++/70781 - ICE on ill-formed lambda.

* parser.c (cp_parser_lambda_expression): Unset OK if there was an
error parsing the lambda-declarator.

From-SVN: r238563
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice16.C [new file with mode: 0644]