bison 2.4 and parse.y
Posted: Sun Sep 06, 2009 2:53 am
Compiling in Gentoo Linux, using Bison 2.4.1, fails with a bison midrule error. This can be easily recreated by using bison directly on the offending file:
$ bison -y src/oc/parse.y
src/oc/parse.y:379.32-33: $$ for the midrule at $3 of `stmt' has no declared type
src/oc/parse.y:390.32-33: $$ for the midrule at $4 of `stmt' has no declared type
src/oc/parse.y:526.12-13: $$ for the midrule at $1 of `section_or_ob' has no declared type
More is said about this error here: http://www.archivum.info/help-bison@gnu ... lared_type. I do not know enough about bison to build a patch.
I am happy to provide more information about my environment, but it seems the problem is with bison-2.4 catching more errors than it used to. If I understand the problem, adding types to parse.y should be fully backward compatible.
Thanks!
-Jason
$ bison -y src/oc/parse.y
src/oc/parse.y:379.32-33: $$ for the midrule at $3 of `stmt' has no declared type
src/oc/parse.y:390.32-33: $$ for the midrule at $4 of `stmt' has no declared type
src/oc/parse.y:526.12-13: $$ for the midrule at $1 of `section_or_ob' has no declared type
More is said about this error here: http://www.archivum.info/help-bison@gnu ... lared_type. I do not know enough about bison to build a patch.
I am happy to provide more information about my environment, but it seems the problem is with bison-2.4 catching more errors than it used to. If I understand the problem, adding types to parse.y should be fully backward compatible.
Thanks!
-Jason