mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
* src/parse-gram.y (YYPRINT, yyprint): Don't mess with the parser
internals. * src/reader.h, src/reader.c (grammar_current_rule_prec_set): Takes a location. * src/symtab.h, src/symtab.c (symbol_class_set) (symbol_user_token_number_set): Likewise. Adjust all callers. Promote complain_at. * tests/input.at (Type Clashes): Adjust.
This commit is contained in:
@@ -82,10 +82,10 @@ AT_CLEANUP
|
||||
|
||||
|
||||
## -------------- ##
|
||||
## Type clashes. ##
|
||||
## Type Clashes. ##
|
||||
## -------------- ##
|
||||
|
||||
AT_SETUP([Type clashes])
|
||||
AT_SETUP([Type Clashes])
|
||||
|
||||
AT_DATA([input.y],
|
||||
[[%token foo
|
||||
@@ -98,9 +98,9 @@ exp: foo {} foo
|
||||
]])
|
||||
|
||||
AT_CHECK([bison input.y], [1], [],
|
||||
[[input.y:5: type clash (`bar' `') on default action
|
||||
input.y:6: type clash (`bar' `') on default action
|
||||
input.y:7: empty rule for typed nonterminal, and no action
|
||||
[[input.y:4.4-15: type clash (`bar' `') on default action
|
||||
input.y:5.4-8: type clash (`bar' `') on default action
|
||||
input.y:6.4: empty rule for typed nonterminal, and no action
|
||||
]])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
Reference in New Issue
Block a user