[Patch, Fortran, F08] PR 45521: GENERIC resolution with ALLOCATABLE/POINTER and PROCEDURE

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Patch, Fortran, F08] PR 45521: GENERIC resolution with ALLOCATABLE/POINTER and PROCEDURE

Janus Weil-3
Hi all,

the attached patch fixes two remaining problems with the resolution of
generic functions with POINTER and ALLOCATABLE arguments in F08
(coments 16 & 17 in the PR):
* it deals with an INTENT(IN) condition that was added in an IR
* it deals with polymorphic arguments, which were mistreated previously.

The patch regtests cleanly on x86_64-linux-gnu. Ok for trunk?

Cheers,
Janus


2018-06-11  Janus Weil  <[hidden email]>

    PR fortran/45521
    * interface.c (compare_ptr_alloc): New function.
    (compare_ptr_alloc): Call it.


2018-06-11  Janus Weil  <[hidden email]>

    PR fortran/45521
    * gfortran.dg/generic_32.f90: New test.
    * gfortran.dg/generic_33.f90: New test.

pr45521.diff (2K) Download Attachment
generic_32.f90 (580 bytes) Download Attachment
generic_33.f90 (654 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Patch, Fortran, F08] PR 45521: GENERIC resolution with ALLOCATABLE/POINTER and PROCEDURE

Steve Kargl
On Mon, Jun 11, 2018 at 05:05:17PM +0200, Janus Weil wrote:
>
> the attached patch fixes two remaining problems with the resolution of
> generic functions with POINTER and ALLOCATABLE arguments in F08
> (coments 16 & 17 in the PR):
> * it deals with an INTENT(IN) condition that was added in an IR
> * it deals with polymorphic arguments, which were mistreated previously.
>
> The patch regtests cleanly on x86_64-linux-gnu. Ok for trunk?
>

Yes.  Thanks for the patch.

--
Steve