This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gfortran,patch] PR 15809, part 1


:ADDPATCH <fortran>:

The attached patch fixes one of the two bugs in 15809.

The cause of the bug is that in trans-array.c/gfc_trans_deferred_array()
we require that TREE_CODE (sym->backend_decl) == VAR_DECL.
For dummy variables, however, TREE_CODE (sym->backend_decl) is
PARM_DECL.  We need to accept that as well.

Bubblestrapped & reg. tested on 4.0 and mainline (Linux/x86).
Please commit if OK.


        Erik


31-08-2005  Erik Edelmann <erik.edelmann@iki.fi>

        PR fortran/15809
        * trans-array.c (gfc_trans_deferred_array): Accept dummy
        variables too.


31-08-2005  Erik Edelmann <erik.edelmann@iki.fi>

        PR fortran/15809
        * gfortran.dg/deferred_dummy.f90


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]