From: Thomas Koenig Date: Sat, 30 Nov 2019 15:08:32 +0000 (+0000) Subject: backport: re PR fortran/91783 (ICE in gfc_dep_resolver, at fortran/dependency.c:2111) X-Git-Tag: releases/gcc-9.3.0~344 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a78fb9e7141b8e4970209080d92a488dab964216;p=thirdparty%2Fgcc.git backport: re PR fortran/91783 (ICE in gfc_dep_resolver, at fortran/dependency.c:2111) Backport from trunk as an insurance policy. 2019-11-30 Thomas Koenig PR fortran/91783 * gfortran.dg/dependency_56.f90: New test. Backport from trunk on the off-chance that somebody backports something that will break this test case. From-SVN: r278874 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 671ff2887a30..8a392e08b669 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ + +2019-11-30 Thomas Koenig + + PR fortran/91783 + * gfortran.dg/dependency_56.f90: New test. Backport from trunk on + the off-chance that somebody backports something that will break + this test case. + 2019-11-29 Harald Anlauf Backport from mainline diff --git a/gcc/testsuite/gfortran.dg/dependency_56.f90 b/gcc/testsuite/gfortran.dg/dependency_56.f90 new file mode 100644 index 000000000000..97c0c814aed4 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/dependency_56.f90 @@ -0,0 +1,14 @@ +! { dg-do compile } +! PR 91783 - used to cause an ICE in dependency checking. +! Test case by Gerhard Steinmetz. +program p + class(*), allocatable :: a(:) + a = [1, 2, 3] + a = f(a) +contains + function f(x) result(y) + class(*), allocatable, intent(in) :: x(:) + class(*), allocatable :: y(:) + y = x + end +end