Backport from trunk as an insurance policy.
2019-11-30 Thomas Koenig <tkoenig@gcc.gnu.org>
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
+
+2019-11-30 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ 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 <anlauf@gmx.de>
Backport from mainline
--- /dev/null
+! { 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