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 22607 again: Return-by-reference functions in modules


When I wrote a patch to fix PR 22607 some time ago
(http://gcc.gnu.org/ml/fortran/2005-11/msg00253.html), I forgot
to check if there were other places where functions were declared
to be "backend-pure", leaving external/module pure
return-by-reference functions still non-working.  This patch
should fix the problem once and for all (I hope).

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


        Erik


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

        PR fortran/22607
        * trans-decl.c(gfc_get_extern_function_decl): Don't set 
        DECL_IS_PURE (fndecl) = 1 for return-by-reference
        functions.


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

        PR fortran/22607
        * gfortran-dg/pure_byref_3.f90: New.

Attachment: 22607-2.diff
Description: Text document

Attachment: pure_byref_3.f90
Description: Text document


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