Berttand,
A 16:18 17-05-2000 +0200, vous disiez:
>
>
>Consider a set of declarations like :
>
>implicit none
>real a(n)
>integer, parameter :: n = 100
>
>Some compilers accept that, some don't (because n is declared
>after a).
>
>What is the rule, what does the standard say in this case?
>
The rule is that an identifier must be delcared before it is used, so
the correct order is
implicit none
integer, parameter :: n = 100
real a(n)
! ... etc.
---
Meilleures Salutations,
Best Greetings,
/---
Jan van Oosterwijk
Computing Centre
Delft University of Technology
Postbus 354
2600 AJ Delft
Netherlands / Pays-Bas
Phone: +31 15 278 50 17
Fax: +31 15 278 37 87
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|