This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: fortran/7662: Dimensions of dummy array in subroutine must agree with arrayed passed from calling program.
- From: toon at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mark dot e dot smith at arnold dot af dot mil, nobody at gcc dot gnu dot org, toon at gcc dot gnu dot org
- Date: 21 Aug 2002 07:54:31 -0000
- Subject: Re: fortran/7662: Dimensions of dummy array in subroutine must agree with arrayed passed from calling program.
- Reply-to: toon at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mark dot e dot smith at arnold dot af dot mil, nobody at gcc dot gnu dot org, toon at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: Dimensions of dummy array in subroutine must agree with arrayed passed from calling program.
Responsible-Changed-From-To: unassigned->toon
Responsible-Changed-By: toon
Responsible-Changed-When: Wed Aug 21 00:54:30 2002
Responsible-Changed-Why:
Fortran Maintainer.
State-Changed-From-To: open->closed
State-Changed-By: toon
State-Changed-When: Wed Aug 21 00:54:30 2002
State-Changed-Why:
Not a compiler bug.
The extents of dummy argument arrays must indeed be the
same as that of the actual argument; if they're not, that's
a programmer error.
Use:
SUBROUTINE SUB(M,N,DUMX)
DIMENSION DUMX(M,N)
...
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7662