re PR c++/71946 (asm in toplevel lambda function rejected)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 4 Oct 2017 17:21:21 +0000 (17:21 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 4 Oct 2017 17:21:21 +0000 (17:21 +0000)
commitfb4ccfed86b61baaafa7a86c07d572e7e9234d29
treec61643ceba88cedfe549751e60197c85f7d1a6af
parentab6501d713bb9de29609bd99b40da3f479e504b6
re PR c++/71946 (asm in toplevel lambda function rejected)

/cp
2017-10-04  Paolo Carlini  <paolo.carlini@oracle.com>
    Andrew Pinski  <apinski@cavium.com>

PR c++/71946
* parser.c (cp_parser_lambda_body): Set parser->in_function_body.

/testsuite
2017-10-04  Paolo Carlini  <paolo.carlini@oracle.com>
    Andrew Pinski  <apinski@cavium.com>

PR c++/71946
* g++.dg/cpp0x/lambda/lambda-asm1.C: New.
* g++.dg/cpp0x/lambda/lambda-stmtexpr1.C: Likewise.

Co-Authored-By: Andrew Pinski <apinski@cavium.com>
From-SVN: r253423
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-asm1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-stmtexpr1.C [new file with mode: 0644]