From e2a8c0f591c1f8ca0909faee23914f62bacb866c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 30 Jan 2006 09:00:40 +0000 Subject: [PATCH] * src/parse-gram.y (grammar_declaration): Location of printer symbol is @1, not list->location. * tests/input.at (Incompatible Aliases): Adjust to above change. --- ChangeLog | 6 ++++++ src/parse-gram.y | 2 +- tests/input.at | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 08759cf8..dbd051c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-01-30 Paul Eggert + + * 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 * tests/input.at (AT_CHECK_UNUSED_VALUES): Remove. Instead, do diff --git a/src/parse-gram.y b/src/parse-gram.y index 68789828..11cd489e 100644 --- a/src/parse-gram.y +++ b/src/parse-gram.y @@ -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" diff --git a/tests/input.at b/tests/input.at index 76e12d2d..ba45119c 100644 --- a/tests/input.at +++ b/tests/input.at @@ -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 -- 2.47.2