+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.
+
2017-10-04 Nathan Sidwell <nathan@acm.org>
Move mangling aliases out of global namespace.
{
bool nested = (current_function_decl != NULL_TREE);
bool local_variables_forbidden_p = parser->local_variables_forbidden_p;
+ bool in_function_body = parser->in_function_body;
if (nested)
push_function_context ();
else
save_omp_privatization_clauses (omp_privatization_save);
/* Clear this in case we're in the middle of a default argument. */
parser->local_variables_forbidden_p = false;
+ parser->in_function_body = true;
/* Finish the function call operator
- class_specifier
restore_omp_privatization_clauses (omp_privatization_save);
parser->local_variables_forbidden_p = local_variables_forbidden_p;
+ parser->in_function_body = in_function_body;
if (nested)
pop_function_context();
else
+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.
+
2017-10-04 Sudakshina Das <sudi.das@arm.com>
* gcc.target/aarch64/bic_imm_1.c: New.
--- /dev/null
+// PR c++/71946
+// { dg-do compile { target c++11 } }
+
+auto test = []{ __asm__ __volatile__ ("" : : "r" (0) ); };
--- /dev/null
+// PR c++/71946
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
+
+auto test = []{ int t = ({ int t1; t1 = 7; t1; }); };