From: Thomas König Date: Mon, 13 Apr 2020 17:06:41 +0000 (+0200) Subject: Commit test case for PR 87644, which has fixed itself somehow. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec72bb0c48cfbd8b9812a6df1049fbcbad472e15;p=gcc.git Commit test case for PR 87644, which has fixed itself somehow. 2020-04-13 Thomas Koenig PR fortran/87644 * gfortran.dg/variable_parameter.f90: New test. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3c3352f5c8b..d58c76b0db0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-04-13 Thomas Koenig + + PR fortran/87644 + * gfortran.dg/variable_parameter.f90: New test. + 2020-04-13 Linus Koenig PR fortran/94192 diff --git a/gcc/testsuite/gfortran.dg/variable_parameter.f90 b/gcc/testsuite/gfortran.dg/variable_parameter.f90 new file mode 100644 index 00000000000..d653c30562f --- /dev/null +++ b/gcc/testsuite/gfortran.dg/variable_parameter.f90 @@ -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