Skip to content
Snippets Groups Projects
Commit 8ed2e447 authored by Jason Merrill's avatar Jason Merrill Committed by Jason Merrill
Browse files

parser.c (cp_parser_omp_declare_reduction_exprs): A block is not an expression.

	* parser.c (cp_parser_omp_declare_reduction_exprs): A block is not
	an expression.

From-SVN: r217618
parent 3952ae1a
No related branches found
No related tags found
No related merge requests found
2014-11-15 Jason Merrill <jason@redhat.com> 2014-11-15 Jason Merrill <jason@redhat.com>
* parser.c (cp_parser_omp_declare_reduction_exprs): A block is not
an expression.
* constexpr.c (cxx_eval_builtin_function_call): Use * constexpr.c (cxx_eval_builtin_function_call): Use
fold_builtin_call_array. fold_builtin_call_array.
......
...@@ -31188,7 +31188,7 @@ cp_parser_omp_declare_reduction_exprs (tree fndecl, cp_parser *parser) ...@@ -31188,7 +31188,7 @@ cp_parser_omp_declare_reduction_exprs (tree fndecl, cp_parser *parser)
   
block = finish_omp_structured_block (block); block = finish_omp_structured_block (block);
cp_walk_tree (&block, cp_remove_omp_priv_cleanup_stmt, omp_priv, NULL); cp_walk_tree (&block, cp_remove_omp_priv_cleanup_stmt, omp_priv, NULL);
finish_expr_stmt (block); add_stmt (block);
   
if (ctor) if (ctor)
add_decl_expr (omp_orig); add_decl_expr (omp_orig);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment