[Prev][Next][Index]

Re: A Bug?



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