re PR fortran/87752 (ICE in omp_add_variable, at gimplify.c:6776)
authorJakub Jelinek <jakub@redhat.com>
Thu, 17 Oct 2019 06:46:53 +0000 (08:46 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 17 Oct 2019 06:46:53 +0000 (08:46 +0200)
PR fortran/87752
* gfortran.dg/gomp/pr87752.f90: New test.

From-SVN: r277091

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr87752.f90 [new file with mode: 0644]

index b574d995ebdc6141a7f86d374ae36fa46be21ad2..e23272ae4566e35974004d8108e34bb8b68b2b17 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-17  Jakub Jelinek  <jakub@redhat.com>
+
+       PR fortran/87752
+       * gfortran.dg/gomp/pr87752.f90: New test.
+
 2019-10-17  Richard Biener  <rguenther@suse.de>
 
        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 (file)
index 0000000..072de21
--- /dev/null
@@ -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