This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30902] gfortran produces wrong result with code using generic interface block
- From: "deji_aking at yahoo dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Feb 2007 15:13:45 -0000
- Subject: [Bug fortran/30902] gfortran produces wrong result with code using generic interface block
- References: <bug-30902-8911@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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