Re: weird problem Fortran 77
From: Michael Metcalf (metcalfm_at_acm.org)
Date: 10/30/03
- Next message: Mark Crispin: "Re: Something strange with g77 ..."
- Previous message: Mathieu Fregeau: "C call, in a Fortran subroutine, within a C main program"
- In reply to: Qian Yong Chen: "weird problem Fortran 77"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 17:54:16 +0100
"Qian Yong Chen" <cqy@cfm.brown.edu> wrote in message
news:3FA13E0B.15D01B1C@cfm.brown.edu...
[snip]
> If the value of N is given in the subroutine, it works fine.
> Or if I only declare a(N), it also works.
>
> Any ideas? Thanks.
Your array a is an automatic array as defined by Fortran 90. Your program is
a valid Fortran 90 program (apart from the *8) and the problem would be
caused by a compiler bug if you're working with a Fortran 90 compiler. If
you really are using a Fortran 77 compiler, then the code is illegal. See
also "Fortran 90/95 Explained", Section 6.4.
Regards,
Mike Metcalf
- Next message: Mark Crispin: "Re: Something strange with g77 ..."
- Previous message: Mathieu Fregeau: "C call, in a Fortran subroutine, within a C main program"
- In reply to: Qian Yong Chen: "weird problem Fortran 77"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
Loading