diff options
author | Thomas Koenig <tkoenig@gcc.gnu.org> | 2016-08-07 15:25:56 +0000 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2016-08-07 15:25:56 +0000 |
commit | c1f7083bd1236a163fe798b2734dd3c3367a1d47 (patch) | |
tree | 5112fd54881bf73c64ccb4db462d43a06ddd9874 | |
parent | 6ab5813c5b424d2749b92b9e996fc37e74b24850 (diff) | |
download | gcc-c1f7083bd1236a163fe798b2734dd3c3367a1d47.zip gcc-c1f7083bd1236a163fe798b2734dd3c3367a1d47.tar.gz gcc-c1f7083bd1236a163fe798b2734dd3c3367a1d47.tar.bz2 |
re PR fortran/71961 (178.galgel in SPEC CPU 2000 is miscompiled)
2016-08-07 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/71961
* gfortran.dg/pr70040.f90: New testcase.
From-SVN: r239221
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/pr70040.f90 | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bc95f00..b2f07c9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,6 +1,11 @@ 2016-08-07 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/71961 + * gfortran.dg/pr70040.f90: New testcase. + +2016-08-07 Thomas Koenig <tkoenig@gcc.gnu.org> + + PR fortran/71961 * gfortran.dg/matmul_10.f90: New testcase. 2016-08-07 Jan Hubicka <hubicka@ucw.cz> diff --git a/gcc/testsuite/gfortran.dg/pr70040.f90 b/gcc/testsuite/gfortran.dg/pr70040.f90 new file mode 100644 index 0000000..080083e --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pr70040.f90 @@ -0,0 +1,19 @@ +! { dg-do compile } +! PR 70040 - used to cause an ICE. +! Test case by Martin Reinecke +program bugrep + implicit none + type :: string + character (len=:), allocatable :: s + end type + + integer l + type(string), allocatable, dimension(:) :: foo + character(len=:),allocatable ::tmp + allocate(foo(20)) + do l= 1, 20 + tmp = foo(5)%s + foo(5)%s = foo(l)%s + foo(l)%s = tmp + enddo +end program |