Files
bison/tests
Joel E. Denny 8ee5b53874 Don't miss %merge result type warnings just because the LHS types are
declared after the %merge.
* src/reader.c (get_merge_function): Don't set the merger type yet.
(record_merge_function_type): New function for setting the merger type
and checking for clashes.
(grammar_current_rule_merge_set): Set the location of the %merge for
the current rule.
(packgram): Invoke record_merge_function_type for each rule now that
all symbol type declarations have been parsed.
* src/reader.h (merger_list.type_declaration_location): New member
storing the location of the first %merge from which the type for this
merging function was derived.
* src/symlist.h (symbol_list.merger_declaration_location): New member
storing the location of a rule's %merge, if any.
* tests/glr-regression.at (Missed %merge type warnings when LHS type is
declared later): New test to catch the error fixed by the above patch.
2006-06-26 04:45:24 +00:00
..
2003-03-14 01:31:24 +00:00
2004-10-05 09:58:58 +00:00
2005-05-14 06:49:48 +00:00
2006-01-22 08:02:47 +00:00
2006-01-22 08:02:47 +00:00
2006-02-13 19:07:04 +00:00
2005-05-14 06:49:48 +00:00
2006-06-25 06:59:54 +00:00
2005-05-14 06:49:48 +00:00