Commit test case for PR 87644, which has fixed itself somehow.

2020-04-13  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/87644
	* gfortran.dg/variable_parameter.f90: New test.
This commit is contained in:
Thomas König 2020-04-13 19:06:41 +02:00
parent efbf739207
commit ec72bb0c48
2 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -0,0 +1,22 @@
! { 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