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]

[patch, gfortran] PR 15396: Userdef. operators returning arrays


:ADDPATCH fortran:

Here's yet another one-liner, to fix PR 25396.  The problem is
that in interface.c (gfc_extend_expr), when we change the
expression node to a function call, we forget to initialize
e->value.function.name to NULL.  This will confuse
resolve.c (resolve_function) into beliving that the function has
been resolved already, which it hasn't.

Reg.tested on Linux/x86, on trunk, 4.1 and 4.0.  Ok to commit?


        Erik

2005-12-30  Erik Edelmann  <eedelman@gcc.gnu.org>

        fortran/PR 25396
        * interface.c (gfc_extend_expr): Initialize
        e->value.function.name to NULL.


2005-12-30  Erik Edelmann  <eedelman@gcc.gnu.org>

        fortran/PR 25396
        * gfortran.dg/userdef_operator_1.f90: New.

Attachment: 25396.diff
Description: Text document

Attachment: userdef_operator_1.f90
Description: Text document


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