diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-12-02 15:37:20 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-12-02 15:37:20 +0100 |
commit | edaadf74d4cd2bc4f0ef72456a4a6df8a4502470 (patch) | |
tree | 236b730968c457a7cee43f76f47f16b4b5f2cc97 /libgomp/testsuite | |
parent | 4c698cf891a7d946b64d95ba89d6a0d255f40712 (diff) | |
download | gcc-edaadf74d4cd2bc4f0ef72456a4a6df8a4502470.zip gcc-edaadf74d4cd2bc4f0ef72456a4a6df8a4502470.tar.gz gcc-edaadf74d4cd2bc4f0ef72456a4a6df8a4502470.tar.bz2 |
re PR fortran/46753 (ICE: OpenMP - in extract_omp_for_data, at omp-low.c:335)
PR fortran/46753
* trans-openmp.c (gfc_trans_omp_do): Use build2_loc instead of
fold_build2_loc for OMP_FOR conditions.
* libgomp.fortran/pr46753.f90: New test.
From-SVN: r167372
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r-- | libgomp/testsuite/libgomp.fortran/pr46753.f90 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.fortran/pr46753.f90 b/libgomp/testsuite/libgomp.fortran/pr46753.f90 new file mode 100644 index 0000000..f4833ab --- /dev/null +++ b/libgomp/testsuite/libgomp.fortran/pr46753.f90 @@ -0,0 +1,17 @@ +! PR fortran/46753 +! { dg-do run } + + integer :: i, j + j = 0 +!$omp parallel do reduction(+:j) + do i = 2147483636, 2147483646 + j = j + 1 + end do + if (j.ne.11) call abort + j = 0 +!$omp parallel do reduction(+:j) + do i = -2147483637, -2147483647, -1 + j = j + 1 + end do + if (j.ne.11) call abort +end |