This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]