2020-04-13 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/87644
* gfortran.dg/variable_parameter.f90: New test.
+2020-04-13 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ PR fortran/87644
+ * gfortran.dg/variable_parameter.f90: New test.
+
2020-04-13 Linus Koenig <link@sig-st.de>
PR fortran/94192
--- /dev/null
+! { dg-do compile }
+! PR 87644 - this used to cause an ICE.
+! Test case by Matt Thompson.
+module test
+
+ implicit none
+ private
+ public :: get
+
+contains
+
+ subroutine initialize()
+ integer :: parameters
+ parameters = get()
+ end subroutine initialize
+
+ function get() result(parameters)
+ integer :: parameters
+ parameters = 1
+ end function get
+
+end module test