[Prev][Next][Index]
Re: Fortran parser bug
- From: "Chih-Yi Chen" <cychen@cs.indiana.edu>
- Subject: Re: Fortran parser bug
- To: lth@owyhee.cs.uoregon.edu
- Date: Wed, 19 Oct 1994 23:00:45 -0500 (EST)
- Cc: sage-bugs@cica.cica.indiana.edu
- In-Reply-To: <9410192125.AA02232@owyhee.cs.uoregon.edu> from "lth@owyhee.cs.uoregon.edu" at Oct 19, 94 02:25:33 pm
>
> When traversing the symbol table for this program, two distinct symbols are
> introduced for the function foo: one at the point of call, one at the
> function header. Both symbols have type FUNCTION_NAME.
>
> Even if there are more calls to foo, only those two symbols are created.
>
Here comes the fix:
In the grammar file f2dep/cftn.gram, find the grammar rule "funcname",
and change one of its action statement
$$ = make_function($1, TYNULL, LOCAL);
to
$$ = make_function($1, TYNULL, YES);
Also, do the same thing to the grammar rule "typedfunc".
This should eliminate the redundant function name symbol node. Please
let me know if there is any problem. Thanks!
Chih-Yi
Reference(s):