You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the older bison, yyparse prototype is not contained in the generated header file1.
However, the newer bison (I'm using 3.0.2 on Ubuntu 14.04) generates the header file with the yyparse prototype.
The yyparse prototype is declared with the parameter types. Since parser::PTXParser::State is nested class, we cannot add forward declaration into the generated header. And since PTXParser.h and yyparse prototype have a circular reference, we cannot include PTXParser.h in the generated ptxgrammar.hpp.
To solve it, I've created the patch for PTXLexer.h. In this patch, we provides yyparse macro definition to avoid generating yyparse prototype. I think it is relatively stable solution for the generated header by bison.
From [email protected] on October 01, 2014 10:24:31
With the older bison, yyparse prototype is not contained in the generated header file1.
However, the newer bison (I'm using 3.0.2 on Ubuntu 14.04) generates the header file with the yyparse prototype.
The yyparse prototype is declared with the parameter types. Since parser::PTXParser::State is nested class, we cannot add forward declaration into the generated header. And since PTXParser.h and yyparse prototype have a circular reference, we cannot include PTXParser.h in the generated ptxgrammar.hpp.
To solve it, I've created the patch for PTXLexer.h. In this patch, we provides yyparse macro definition to avoid generating yyparse prototype. I think it is relatively stable solution for the generated header by bison.
Could you review this patch?
Attachment: bison.patch
Original issue: http://code.google.com/p/gpuocelot/issues/detail?id=98
The text was updated successfully, but these errors were encountered: