Test failures when using Bison 2.3
-
Douglas Creager
More information. The
positionclass is defined by /usr/share/bison/location.cc. In 2.3, the default constructor uses a hard-coded 0 for the initial value of thecolumnfield. In 2.4, this is configured by theb4_location_initial_columnM4 variable, which is given an default value of 1 in /usr/share/bison/bison.m4. -
Douglas Creager
Here is a thread on the Bison mailing list describing the change:
http://www.mail-archive.com/bison-patches@gnu.org/msg01142.html
-
Douglas Creager
- State changed from new to open
- Milestone set to 1.0-α4
-
Douglas Creager
- State changed from open to resolved
(from [cfbf8e98479f1270f396db888adb9a01c8bc60dc]) Fixed column numbers when using Bison 2.3
Bison 2.3 numbers the columns in an input file from 0, whereas 2.4 numbers them from 1. We want to consistently use 1-based column numbers. This was causing a problem with test cases that would generate (expected) parse errors — if the correct test result was generated using Bison 2.4, then that test would fail when using 2.3, and vice versa.
I could not find an easy way to override the “column” field's default value, so instead, we add code in our Bison grammars to manually reset the column to 1 at the start of each file, and every time a new line is encountered.
Lighthouse: [#20 Test failures when using Bison 2.3 state:resolved] http://github.com/hst/hst/commit...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.