re PR fortran/16136 (Conflicting attributes ALLOCATABLE, DUMMY (F2003))
authorErik Edelmann <eedelman@gcc.gnu.org>
Sun, 5 Mar 2006 19:24:48 +0000 (19:24 +0000)
committerErik Edelmann <eedelman@gcc.gnu.org>
Sun, 5 Mar 2006 19:24:48 +0000 (19:24 +0000)
commitaa08038dda94c80126a2ac54e8bab0964a95bf41
treed1b0048a6e28bab0dfa55b141c9b8fb3793db643
parent68c9b7d60a71b8ab9e0ebe692f74aedb61a95af1
re PR fortran/16136 (Conflicting attributes ALLOCATABLE, DUMMY (F2003))

fortran/
2005-03-05  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/16136
        * symbol.c (conf_std): New macro.
        (check_conflict): Use it to allow ALLOCATABLE dummy
        arguments for F2003.
        * trans-expr.c (gfc_conv_function_call): Pass the
        address of the array descriptor when dummy argument is
        ALLOCATABLE.
        * interface.c (compare_allocatable): New function.
        (compare_actual_formal): Use it.
        resolve.c (resolve_deallocate_expr,
        resolve_allocate_expr): Check that INTENT(IN) variables
        aren't (de)allocated.
        * gfortran.texi (Fortran 2003 status): List ALLOCATABLE
        dummy arguments as supported.

testsuite/
2005-03-05  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/16136
        * allocatable_dummy_1.f90: New.
        * allocatable_dummy_2.f90: New.

From-SVN: r111741
gcc/fortran/ChangeLog
gcc/fortran/gfortran.texi
gcc/fortran/interface.c
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocatable_dummy_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/allocatable_dummy_2.f90 [new file with mode: 0644]