https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113997

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-stdcheck

--- Comment #9 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to kargls from comment #1)
> Can you provide a complete minimum example?  It seems that your
> description conflicts with Fortran 2023, 19.2 Global identifiers.
> 
> 1   ... entities with binding labels ... are global entities of a program.
>     ... The name of ... external procedure with no binding label ... is a
> global
>     identifier.  ... A binding label of an entity of the program is a global
>     identifier.
> 
> 
> 2  The global identifier of an entity shall not be the same as the global
> identifier
>    of any other entity. Furthermore, a binding label shall not be the same
> as the
>    global identifier of any other global entity, ignoring differences in
> case.

After thinking about this a bit more, I think Steve is right.
The warning is justified, and even a hard error would be OK.

But I'll ask on the J3 mailing list just to be sure.

Reply via email to