This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25071] dummy argument larger than actual argument
- From: "Joost.VandeVondele at pci dot uzh.ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Jan 2011 13:22:54 +0000
- Subject: [Bug fortran/25071] dummy argument larger than actual argument
- Auto-submitted: auto-generated
- References: <bug-25071-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25071
--- Comment #11 from Joost VandeVondele <Joost.VandeVondele at pci dot uzh.ch> 2011-01-27 13:22:49 UTC ---
I actually vaguely recall why this should be a warning, and not be checked for
at runtime. This is for legacy codes using real :: a(1) instead of real ::
a(*). Something like
SUBROUTINE S1(a)
INTEGER :: a(10)
a(10)=0
END SUBROUTINE
SUBROUTINE S2(a)
INTEGER :: a(1)
CALL S1(a)
END SUBROUTINE
INTEGER :: a(10)
CALL S2(a)
END
'works just fine'...