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: [Patch, Fortran] PR40427: [F03] Procedure Pointer Components with OPTIONAL arguments


Janus Weil wrote:
> here is my patch for PR 40427, which makes PPCs with OPTIONAL components work.
>
> Unfortunately this is mainly accomplished by duplicating code that
> works on normal procedures or procedure pointers (e.g.
> gfc_procedure_use or gfc_copy_formal_args), since I did not find a
> more elegant solution to this (if anyone has an idea for a more
> unified design, I'd be happy to hear it).

Since they are rather short, it is not too bad - just that we need
to remember to keep both up to date (which will not work ...).

> The patch is regression-tested on x86_64-unknown-linux-gnu.
> Ok for trunk?

As you have modified what is put into the .mod files, you need
to bump the module version:

   #define MOD_VERSION "0"

Otherwise it looks OK to me.

Tobias


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