* src/parse-gram.y (grammar_declaration): Location of printer

symbol is @1, not list->location.
* tests/input.at (Incompatible Aliases): Adjust to above change.
This commit is contained in:
Paul Eggert
2006-01-30 09:00:40 +00:00
parent a7086c4f27
commit e2a8c0f591
3 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2006-01-30 Paul Eggert <eggert@cs.ucla.edu>
* src/parse-gram.y (grammar_declaration): Location of printer
symbol is @1, not list->location. Bug reported by twlevo.
* tests/input.at (Incompatible Aliases): Adjust to above change.
2006-01-29 Paul Eggert <eggert@cs.ucla.edu>
* tests/input.at (AT_CHECK_UNUSED_VALUES): Remove. Instead, do

View File

@@ -287,7 +287,7 @@ grammar_declaration:
{
symbol_list *list;
for (list = $2; list; list = list->next)
symbol_printer_set (list->sym, $1, list->location);
symbol_printer_set (list->sym, $1, @1);
symbol_list_free ($2);
}
| "%default-prec"

View File

@@ -178,7 +178,7 @@ AT_CHECK([bison input.y], [1], [],
input.y:3.7-11: first declaration
input.y:10.13-17: %destructor redeclaration for foo
input.y:5.13-17: first declaration
input.y:9.19-23: %printer redeclaration for foo
input.y:9.10-14: %printer redeclaration for foo
input.y:10.13-17: first declaration
input.y:11.1-5: %left redeclaration for foo
input.y:6.1-5: first declaration