Fortran] PR91640 – Fix call to contiguous dummy
authorTobias Burnus <tobias@codesourcery.com>
Sat, 4 Jan 2020 08:19:51 +0000 (08:19 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Sat, 4 Jan 2020 08:19:51 +0000 (09:19 +0100)
commit9b9623194bf17328bc03e09b043149adf4fb0f9a
tree1247970c3e2684bee6845dcbdeb5ee4a097181db
parentc0c4eaae49682e8026e1f42087f58e22d2d5c294
Fortran] PR91640 – Fix call to contiguous dummy

        PR fortran/91640
        * trans-expr.c (gfc_conv_procedure_call): Avoid copy-out for nonvariable
        arguments to contiguous dummy args.  Avoid re-checking whether fsym is
        NULL.

        PR fortran/91640
        * gfortran.dg/contiguous_10.f90: New.

From-SVN: r279879
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/contiguous_10.f90 [new file with mode: 0644]