Fortran] PR 92208 don't use function-result dummy variable as actual argument
authorTobias Burnus <tobias@codesourcery.com>
Wed, 30 Oct 2019 20:01:36 +0000 (20:01 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Wed, 30 Oct 2019 20:01:36 +0000 (21:01 +0100)
commit6b7a9826d737254eb70ab5a600ce5f334a7f922b
treef36fd636c12258dbdebe9b7c154303f2dbaaf6ad
parentc766762429d045b575853539e019746fde6ef076
Fortran] PR 92208 don't use function-result dummy variable as actual argument

        PR fortran/92208
        * trans-array.c (gfc_conv_array_parameter): Only copy
        string-length backend_decl if expression is not a function.

        PR fortran/92208
        * gfortran.dg/pr92208.f90: New.

From-SVN: r277639
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr92208.f90 [new file with mode: 0644]