Skip to content

Commit b06fea1

Browse files
krystophnyPaul Thomas
authored andcommitted
fortran: Add testcase [PR98203]
The reproducer from the bug report compiles cleanly on current trunk. Add a testcase to prevent future regressions. PR fortran/98203 gcc/testsuite/ChangeLog: PR fortran/98203 * gfortran.dg/gomp/pr98203.f90: New test. Signed-off-by: Christopher Albert <albert@tugraz.at> (cherry picked from commit 37e5512)
1 parent 6cfc25c commit b06fea1

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
! { dg-do compile }
2+
! PR fortran/98203
3+
! Contributed by G. Steinmetz <gscfq@t-online.de>
4+
!
5+
! ICE in gfc_trans_omp_do with collapse(2) and non-unit stride.
6+
7+
subroutine s
8+
integer :: i, j
9+
!$omp parallel do collapse(2)
10+
do i = 1, 10, 2
11+
do j = 1, 10
12+
end do
13+
end do
14+
end

0 commit comments

Comments
 (0)