If I recall correctly, in my own C++ code, I had to have an actual
grammar line that *used* 'yyerrok' before bison would put the relevant
code into the .tab.cpp file. If I didn't, it would never put it in,
and other code that tried to reference it would run into problems.
Something like:
input: /* empty */
| input mycorrectparsing {do_stuff($2);}
| input error {cerr << "oops"; yyerrok;}
Commenting out that last line would give me problems (since I assumed
yyerror things elsewhere in the code).
Similar things happened with yylloc, I believe.
Maybe that helps?
-Lucian
_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison