]> git.saurik.com Git - bison.git/commit
* data/glr.c (yyresolveLocations): Remove bogus YYASSERT that the
authorJoel E. Denny <jdenny@ces.clemson.edu>
Sun, 21 May 2006 06:22:36 +0000 (06:22 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Sun, 21 May 2006 06:22:36 +0000 (06:22 +0000)
commit5ad0a449d62cb14c34dac70f86281edee7ab4275
tree5de0b6a79c100fa91b3351a269ad9454150f0f14
parent50cce58e9a046f6a98b66cf3907f2668d044df1c
* data/glr.c (yyresolveLocations): Remove bogus YYASSERT that the
state before an empty RHS is always resolved here.  Only the location
of that state is guaranteed to be resolved, and that's enough.  This
fixes the remaining bug reported by Derek M. Jones in
<http://lists.gnu.org/archive/html/bug-bison/2006-05/msg00027.html>.
* tests/glr-regression.at (Uninitialized location when reporting
ambiguity): Test the above case.
Also, the embedded comments in this test case claim it checks the case
of an empty RHS that has inherited the initial location.  However, the
corresponding LHS was already resolved, so yyresolveLocations didn't
actually have reason to modify it.  Fix this by forcing
nondeterministic operation at the beginning of the parse.
ChangeLog
data/glr.c
tests/glr-regression.at