[ patch, fortran, committed] Fix PR 89981, rejects valid

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ patch, fortran, committed] Fix PR 89981, rejects valid

Thomas Koenig-6
Hello world,

I have attached the patch below as obvious and simple (it is a
one-liner). The problem was a latent bug exposed by my recent
commit for PR 78865, where the check for subroutine entries
was done on the main symbol instead of the entry.  Provision
for doing this for the entry master were already in place,
I simply added the condition for the entry itself.

I will wait a week or so before committing to gcc-8, the only
other affected branch.

Regards

        Thomas

2019-04-06  Thomas Koenig  <[hidden email]>

        PR fortran/89981
        * resolve.c (resolve_global_procedure): If the global symbol is an
        ENTRY, also look up its name among the entries.

2019-04-06  Thomas Koenig  <[hidden email]>

        PR fortran/89981
        * gfortran.dg/entry_22.f90: New test.

p1.diff (563 bytes) Download Attachment
entry_22.f90 (320 bytes) Download Attachment