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:
parent
efbf739207
commit
ec72bb0c48
2 changed files with 27 additions and 0 deletions
|
@ -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
|
||||
|
|
22
gcc/testsuite/gfortran.dg/variable_parameter.f90
Normal file
22
gcc/testsuite/gfortran.dg/variable_parameter.f90
Normal 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
|
Loading…
Add table
Reference in a new issue