[Prev][Next][Index]
Re: A Bug?
- From: "Beata Winnicka" <bfatyga@slab.cica.indiana.edu>
- Date: Sat, 14 Jan 95 16:47:19 -0500
- To: Michael Golden <mgolden@eecs.umich.edu>
- Subject: Re: A Bug?
- Cc: sage-bugs@cica.indiana.edu
Michael,
try the following fix:
in y++.y , find the rule for initdecls:
initdecls ',' initdcl
(this is around line 2680 in my version of y++.y). Add the statement
main_type_flag = TYPE_CLEAN;
at the end of the actions for that rule, i.e.:
| initdecls ',' initdcl
{ PTR_LLND ll_node1;
PTR_BFND bifd;
PTR_LLND exprlist_llnd;
bifd = lastBifInBlobList(pred_bfnd);
exprlist_llnd = BIF_LL1(bifd);
ll_node1 = Follow_Llnd(exprlist_llnd,2);
NODE_OPERAND0(ll_node1) = $3;
$$ = exprlist_llnd;
main_type_flag = TYPE_CLEAN; /* add this */
}
--Beata