re PR fortran/50981 ([OOP] Wrong-code for scalarizing ELEMENTAL call with absent...
authorMikael Morin <mikael@gcc.gnu.org>
Mon, 16 Jan 2012 19:51:44 +0000 (19:51 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Mon, 16 Jan 2012 19:51:44 +0000 (20:51 +0100)
commitd836651c85e71e0a82540cf851943965966b568e
treedc5fb2bde8f185a80653d7bfa19eab6fc8c53928
parent22c30bc09a6ff27638521bd82ac5e25c525f1273
re PR fortran/50981 ([OOP] Wrong-code for scalarizing ELEMENTAL call with absent OPTIONAL argument)

2012-01-16  Mikael Morin  <mikael@gcc.gnu.org>
            Tobias Burnus  <burnus@net-b.de>

        PR fortran/50981
        * trans-array.c (gfc_walk_elemental_function_args): Fix
        passing of deallocated allocatables/pointers as absent argument.

2012-01-16  Mikael Morin  <mikael@gcc.gnu.org>
            Tobias Burnus  <burnus@net-b.de>

        PR fortran/50981
        * gfortran.dg/elemental_optional_args_3.f90: New
        * gfortran.dg/elemental_optional_args_4.f90: New

Co-Authored-By: Tobias Burnus <burnus@net-b.de>
From-SVN: r183220
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/elemental_optional_args_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/elemental_optional_args_4.f90 [new file with mode: 0644]