[Bug c++/70781] [6/7 Regression] ICE on invalid C++ code with lambda expressions on x86_64-linux-gnu in finish_expr_stmt, at cp/semantics.c:677
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 21 06:17:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70781
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Jul 21 06:16:30 2016
New Revision: 238576
URL: https://gcc.gnu.org/viewcvs?rev=238576&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice16.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/parser.c
More information about the Gcc-bugs
mailing list