This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37445] Host-associated proc not found if same-name generic is use-associated
- From: "jv244 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Sep 2008 06:38:20 -0000
- Subject: [Bug fortran/37445] Host-associated proc not found if same-name generic is use-associated
- References: <bug-37445-15125@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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