Skip to content

Commit

Permalink
2006-09-12 Paul Thomas <[email protected]>
Browse files Browse the repository at this point in the history
	PR fortran/28971
	gfortran.dg/pr28971.f90: New test to act as a backstop in case
	this undiagnosed regression reappears.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116904 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
pault committed Sep 12, 2006
1 parent 6243525 commit 6d91f6c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gcc/testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2006-09-12 Paul Thomas <[email protected]>

PR fortran/28971
gfortran.dg/pr28971.f90: New test to act as a backstop in case
this undiagnosed regression reappears.

2006-09-12 Kazu Hirata <[email protected]>

* lib/c-torture.exp (c-torture-compile, c-torture-execute):
Expand Down
20 changes: 20 additions & 0 deletions gcc/testsuite/gfortran.dg/pr28971.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
! { dg-do compile }
! This caused an ICE for gfortrans of July 2006 vintage. It was a regression
! that "fixed" itself. The cause and the fix are mysteries. This test is intended
! to signal any further regression, should it occur.
!
! Contributed by Oskar Enoksson <[email protected]>

SUBROUTINE BUG(A,B)
IMPLICIT NONE

INTEGER :: A
INTEGER :: B(2)

INTEGER, PARAMETER :: C(2) = (/ 1,2 /)

WHERE (C(:).EQ.A)
B = -1
END WHERE
END SUBROUTINE BUG

0 comments on commit 6d91f6c

Please sign in to comment.