mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user