Too many arguments on intrinsic call

Toon Moene toon@moene.indiv.nluug.nl
Wed Feb 18 20:08:00 GMT 2004


Ramonet Blade wrote:

> I'm new to gcc/g77 and would appreciate
> recommendations on the following problem.
> 
> I have the following line:
> 
> call flush ( nou, ierr)
> 
> yet during compilation receive the following error:
> 
> call flush ( nou, ierr)
>      ^  
> 
> Too many arguments passed to intrinsic `FLUSH' at (^)
> 
> According to documentation, FLUSH will accept multiple
> units.

Not according to our documentation (see 
http://gcc.gnu.org/onlinedocs/gcc-3.3.2/g77/Flush-Intrinsic.html#Flush%20Intrinsic

Flush Intrinsic

      CALL Flush(Unit)


Unit: INTEGER; OPTIONAL; scalar; INTENT(IN).

Intrinsic groups: unix.

Description:

Flushes Fortran unit(s) currently open for output. Without the optional 
argument, all such units are flushed, otherwise just the unit specified 
by Unit.

Some non-GNU implementations of Fortran provide this intrinsic as a 
library procedure that might or might not support the (optional) Unit 
argument.

Hope this helps,

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)



More information about the Gcc-help mailing list