This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/30902] gfortran produces wrong result with code using generic interface block



------- Comment #4 from deji_aking at yahoo dot ca  2007-02-21 15:13 -------
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #0)
> 
> > By the way, NAG f95 detects the interface/procedure mismatch also for the
> > original program as the interface and the subroutines are in the same file.
> > This same-file error detection is also planed for gfortran.
> > 
> 
> K'aro Deji,
> 
> Or, more succinctly, the array in the interface is assumed shape, dimension
> (:), whereas you have an automatic array in the subroutine.
> 
> Change to
> 
Effecting the change Paul suggested fixed it for me, Thanks all. The interface
and the subroutine are in different files in the original code.

Deji


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]