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]

Re: passing arguments by value


Mariano,

could somebody give some hints on how to compile a fortran code which
uses %VAL() to pass arguments to a subroutine??? intel fortran compiler
works ok, old g77 too, but it seems that brand new versions of GCC (4.xx)
cannot. i have been googleing around but apparently this is not an
urgent issue to implement (re-implement?) in gcc.


I most of the way developed a patch to do this before Christmas; a preliminary version is posted on http://gcc.gnu.org/ml/fortran/2005-12/msg00123.html It is perfectly usable, so apply it and enjoy.

The patch needs finishing but it keeps falling to the bottom of the heap. Following Tobi's brackets patch, I can see a much cleaner way of doing it. It will happen, I just cannot promise when.

ok, i know the kind of answers "this is not part of the fortran
standard", but it has been a very useful artifact for such a long time...


... and it anticipates passing by value in F2003.

Paul




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