re PR c++/63455 (decltype of statement expression internal compiler error: in cp_par...
authorJason Merrill <jason@redhat.com>
Wed, 15 Oct 2014 14:12:24 +0000 (10:12 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 15 Oct 2014 14:12:24 +0000 (10:12 -0400)
commit5f83e90bb6f44cb079edf65b55f3caab34c42516
treed4540d6292cb29ad0a829b9d951b84d6a3058e85
parent327a79a52392f9fec4c92693278fe8d362bc7008
re PR c++/63455 (decltype of statement expression  internal compiler error: in cp_parser_abort_tentative_parse, at cp/parser.c:25062)

PR c++/63455
c-family/
* c-common.h (CPP_PREPARSED_EXPR): New.
(N_CP_TTYPES): Adjust.
cp/
* parser.c (struct saved_token_sentinel): New.
(cp_parser_statement): Use it.
(cp_parser_start_tentative_firewall): New.
(cp_parser_end_tentative_firewall): New.
(cp_parser_lambda_expression): Use them.
(cp_parser_statement_expr): New.
(cp_parser_primary_expression): Use it.

From-SVN: r216260
gcc/c-family/ChangeLog
gcc/c-family/c-common.h
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-sfinae1.C
gcc/testsuite/g++.dg/ext/stmtexpr16.C [new file with mode: 0644]