re PR middle-end/80853 (OpenMP ICE in build_outer_var_ref with array reduction)
authorJakub Jelinek <jakub@redhat.com>
Mon, 22 May 2017 18:51:54 +0000 (20:51 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 22 May 2017 18:51:54 +0000 (20:51 +0200)
commitc24783c49924474f54feb0c6038cba4719125634
treeac190183444200175ba69ab2d6aaf216d6806398
parent051e40e0cb151d3fd7a773213ee00f84043e2a25
re PR middle-end/80853 (OpenMP ICE in build_outer_var_ref with array reduction)

PR middle-end/80853
* omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
as last argument to build_outer_var_ref for pointer bases of array
section reductions.

* testsuite/libgomp.c/pr80853.c: New test.

From-SVN: r248344
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/pr80853.c [new file with mode: 0644]