------- 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