This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Too many arguments on intrinsic call
- From: Bud Davis <bdavis at f77 dot linksysnet dot com>
- To: Ramonet Blade <ramonetb at yahoo dot com>
- Cc: help-gcc at gnu dot org
- Date: Tue, 17 Feb 2004 19:37:58 -0600
- Subject: Re: Too many arguments on intrinsic call
- References: <20040217233154.92994.qmail@web40508.mail.yahoo.com>
g77 supports only one unit number in a call to flush.
just a guess, but looking at the variable names, ierr
may be a status variable instead of a second unit.
some other dialects of f77 have a "call flush" with two
arguments, first being a unit number and the second being
a status variable.
if this is the case, then taking:
call flush( nou, ierr)
and turning it into:
call flush( nou)
call flush( ierr)
will error because ierr is probably not equal to a valid
unit number.
give this a try:
call flush (nou)
ierr = 0 ! assume status is good from flush
regards,
bud davis
On Tue, Feb 17, 2004 at 03:31:54PM -0800, 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. Splitting it up into two calls does let the
> code compile, however some runs do no execute. The
> same code then compiled with a windows compiler will
> result in errors. I fear this may be the culprit.
>
> Can you please advise on why this happening?
>
> Thanks
>
> -kirk
>
> =====
> -The Jolly Wizened Oaf!
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html