From 62900598dfec3c26b203bb8847277db9f4c40ed2 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 17 Oct 2019 08:46:53 +0200 Subject: [PATCH] re PR fortran/87752 (ICE in omp_add_variable, at gimplify.c:6776) PR fortran/87752 * gfortran.dg/gomp/pr87752.f90: New test. From-SVN: r277091 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gfortran.dg/gomp/pr87752.f90 | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/gomp/pr87752.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b574d995ebd..e23272ae456 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-10-17 Jakub Jelinek + + PR fortran/87752 + * gfortran.dg/gomp/pr87752.f90: New test. + 2019-10-17 Richard Biener PR debug/91887 diff --git a/gcc/testsuite/gfortran.dg/gomp/pr87752.f90 b/gcc/testsuite/gfortran.dg/gomp/pr87752.f90 new file mode 100644 index 00000000000..072de218253 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/gomp/pr87752.f90 @@ -0,0 +1,12 @@ +! PR fortran/87752 +! { dg-do compile } +! { dg-additional-options "-Ofast" } + +subroutine foo (n, u, v) + integer :: n + real, pointer :: u(:), v(:) + !$omp parallel do simd + do i = 1, n + u(:) = v(:) + end do +end -- 2.30.2