[Bug fortran/37445] Host-associated proc not found if same-name generic is use-associated
jv244 at cam dot ac dot uk
gcc-bugzilla@gcc.gnu.org
Wed Sep 10 06:39:00 GMT 2008
------- Comment #6 from jv244 at cam dot ac dot uk 2008-09-10 06:38 -------
(In reply to comment #5)
> "Two or more accessible entities, other than generic interfaces or defined
> operators, may have the same identifier only if the identifier is not used to
> refer to an entity in the scoping unit.
My standardese has become a bit rusty, but I think this just means that this
would be invalid:
SUBROUTINE S3
CALL putaline()
CALL putaline(1)
CONTAINS
SUBROUTINE putaline(x)
character, optional :: x
END SUBROUTINE
END SUBROUTINE
since in the call 'CALL putaline(1)' the identifier refers to the scoping unit.
All compilers you mentioned reject the above. I suspect the reduced program is
valid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37445
More information about the Gcc-bugs
mailing list