Skip to content
Snippets Groups Projects
Commit 893ffa2c authored by Aldy Hernandez's avatar Aldy Hernandez Committed by Aldy Hernandez
Browse files

re PR c++/70565 (ICE at gimplify.c:8832 (cilkplus array extension))

	PR c++/70565
	* cp-array-notation.c (expand_array_notation_exprs): Handle
	OMP_PARALLEL.

From-SVN: r244538
parent d365b403
No related branches found
No related tags found
No related merge requests found
2017-01-17 Aldy Hernandez <aldyh@redhat.com>
PR c++/70565
* cp-array-notation.c (expand_array_notation_exprs): Handle
OMP_PARALLEL.
2017-01-11 Jason Merrill <jason@redhat.com> 2017-01-11 Jason Merrill <jason@redhat.com>
PR c++/78337 - ICE on invalid with generic lambda PR c++/78337 - ICE on invalid with generic lambda
......
...@@ -1198,6 +1198,10 @@ expand_array_notation_exprs (tree t) ...@@ -1198,6 +1198,10 @@ expand_array_notation_exprs (tree t)
} }
case OMP_PARALLEL: case OMP_PARALLEL:
OMP_PARALLEL_BODY (t)
= expand_array_notation_exprs (OMP_PARALLEL_BODY (t));
return t;
case OMP_TASK: case OMP_TASK:
case OMP_FOR: case OMP_FOR:
case OMP_SINGLE: case OMP_SINGLE:
......
// { dg-do compile } */
// { dg-options "-fcilkplus" }
int array[999];
void foo()
{
_Cilk_for (int i=0; i < 999; ++i)
array[:] = 0;
}
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