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

Thomas Koenig tkoenig@netcologne.de
Sat Apr 6 14:21:00 GMT 2019


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  <tkoenig@gcc.gnu.org>

	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  <tkoenig@gcc.gnu.org>

	PR fortran/89981
	* gfortran.dg/entry_22.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 550 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190406/835d72ce/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: entry_22.f90
Type: text/x-fortran
Size: 308 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190406/835d72ce/attachment-0001.bin>


More information about the Fortran mailing list