]> git.donarmstrong.com Git - lilypond.git/commit
Issue 4917: Remove some set_location calls from parser
authorDavid Kastrup <dak@gnu.org>
Mon, 4 Jul 2016 08:08:41 +0000 (10:08 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 11 Jul 2016 06:12:20 +0000 (08:12 +0200)
commit7d7589bdf70cb227b032220bae87eda2045ccc8e
treef25be2e9568cb6ce0b605ae4251f8ad4772af3ca
parent9a7a86622af9ce0a8f36e0a6c1e08d8a54dd8e3c
Issue 4917: Remove some set_location calls from parser

Older versions of Bison (current is 3.0.4) had problems assigning
location data to rules with empty production, possibly related to the
definition of YYLLOCA_DEFAULT when N is zero.

This lead to several workarounds in the code base.  A number of them
dropped through the floor in the course of refactoring without
apparent problem, and the original problem does not appear to be
reproducible with the current versions of Bison.

This removes the remaining instances.  Should the original problem
reoccur at some point of time (or with some versions of Bison), it
would be noticeable as bad point-and-click messages and/or error
messages with bad location data.
lily/parser.yy