Change %merge result type clash warnings to errors. Discussed at

<http://lists.gnu.org/archive/html/bison-patches/2006-07/msg00026.html>.
* src/reader.c (record_merge_function_type): Use complain_at.
* tests/glr-regression.at (Missed %merge type warnings when LHS type is
declared later): Update test case results.
This commit is contained in:
Joel E. Denny
2006-07-09 16:38:31 +00:00
parent b8a4155924
commit 3b452f4ea6
5 changed files with 126 additions and 229 deletions

View File

@@ -1713,11 +1713,11 @@ main (void)
}
]])
AT_CHECK([[bison -o glr-regr18.c glr-regr18.y]], 0, [],
[glr-regr18.y:27.18-24: warning: result type clash on merge function `merge': <type2> != <type1>
glr-regr18.y:26.18-24: warning: previous declaration
glr-regr18.y:28.13-19: warning: result type clash on merge function `merge': <type3> != <type2>
glr-regr18.y:27.18-24: warning: previous declaration
AT_CHECK([[bison -o glr-regr18.c glr-regr18.y]], 1, [],
[glr-regr18.y:27.18-24: result type clash on merge function `merge': <type2> != <type1>
glr-regr18.y:26.18-24: previous declaration
glr-regr18.y:28.13-19: result type clash on merge function `merge': <type3> != <type2>
glr-regr18.y:27.18-24: previous declaration
])
AT_CLEANUP