------- Comment #6 from dominiq at lps dot ens dot fr  2010-08-06 18:42 -------
> Your right, I assumed blindly that this code makes at least some sense (I
> modified it to remove the dependencies, but the main issue remains the same).
> However, it compiles with Pathscale 3.1 and SunStudio 12.1 (probably also
> others, as a Windows binary of this beautiful artwork is available). Is it
> normal that a routine can prevent compilation of a preceding one?

Well, I cannot see how the code you POSTED (you may have introduced a problem
when reducing the code, it is quite common) could be valid according the
Fortran standard. However I think the constraints that the actual and dummy
must match are put under a "shall", i.e. the burden is on the user and the
compiler may or may not detect the problem (put the call and the subroutine in
two different files instead of in a CONTAINS unit and the compiler has no way
to check that the actual and dummy argument match: a very common mistake when
using libraries).

CCed Steven G. Kargl for additional opinion.


-- 

dominiq at lps dot ens dot fr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sgk at troutmask dot apl dot
                   |                            |washington dot edu


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

Reply via email to