Hi Mark,

the error message does not make sense – and I also currently
do not see why that example should be invalid.

Regarding the error message:
   "uses the same global identifier"
In the test program (attached or PR) I do see one function "f"
and one entry "g" – and both "f" and "g" is only used once.

I also checked the F2018 standard and did not spot anything
which restricts this example.

Hence, I believe the test case is valid and, hence, the patch
does not solve the actual problem.

Cheers,

Tobias

On 3/23/20 3:55 PM, Mark Eggleston wrote:
Apologies, 2nd attempt:

gcc/fortran/ChangeLog:

    Steven G. Kargl  <ka...@gcc.gnu.org>

    PR fortran/93814
    * resolve.c (gfc_verify_binding_labels): Handle symbols with
    the subroutine attribute separately from symbols with the
    function attribute.

gcc/testsuite/ChanheLog:

    Mark Eggleston  <mark.eggles...@codethink.com>

    PR fortran/93814
    * gfortran.dg/pr93814.f90: New test.

OK to commit?

On 22/03/2020 17:46, Thomas Koenig wrote:
Hi Mark,

Please find attached Steve Kargl's fix for PR93814.

The attached patch does not match the ChangeLog; it seems to
be for PR93484.

Regards

    Thomas

-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander 
Walter

Reply via email to