http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61069

--- Comment #7 from Tristan Moody <tristanmoody at gmail dot com> ---
(In reply to Steve Kargl from comment #5)
> The Fortran code conforms to the Fortran standard!  Why do you continue to
> claim that it is nonconforming invalid code.  What the linker does to 
> the object code after the Fortran processor has created the three object
> files is beyond the scope of the Fortran standard.

Not to belabor the point, but that is simply not correct.  Using the Fortran
2008 standard for reference, that code violates syntax rule R1220, constraint
C1226, of clause 12.5.1. --

R1220 call-stmt is CALL procedure-designator [ ( [ actual-arg-spec-list ] ) ]
C1226 (R1220) The procedure-designator shall designate a subroutine.

This is not to be construed as an argument that it should be fixed -- I concur
with Andrew Pinski's rationale -- it just needs to be documented.  That's all.

Reply via email to