mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: fix empty unions.
Empty unions are not accepted by the ISO C99 grammar or by at least some versions of Sun Studio. Reported by Wolfgang S. Kechel at <http://lists.gnu.org/archive/html/bug-bison/2011-08/msg00003.html>. * NEWS (2.5.1): Document fix. * THANKS (Wolfgang S. Kechel): Add. * tests/existing.at (GNU Cim Grammar) (GNU pic (Groff 1.18.1) Grammar.): Remove empty %union.
This commit is contained in:
12
ChangeLog
12
ChangeLog
@@ -1,3 +1,15 @@
|
|||||||
|
2011-08-21 Joel E. Denny <joeldenny@joeldenny.org>
|
||||||
|
|
||||||
|
tests: fix empty unions.
|
||||||
|
Empty unions are not accepted by the ISO C99 grammar or by at
|
||||||
|
least some versions of Sun Studio. Reported by Wolfgang S. Kechel
|
||||||
|
at
|
||||||
|
<http://lists.gnu.org/archive/html/bug-bison/2011-08/msg00003.html>.
|
||||||
|
* NEWS (2.5.1): Document fix.
|
||||||
|
* THANKS (Wolfgang S. Kechel): Add.
|
||||||
|
* tests/existing.at (GNU Cim Grammar)
|
||||||
|
(GNU pic (Groff 1.18.1) Grammar.): Remove empty %union.
|
||||||
|
|
||||||
2011-07-10 Joel E. Denny <joeldenny@joeldenny.org>
|
2011-07-10 Joel E. Denny <joeldenny@joeldenny.org>
|
||||||
|
|
||||||
build: avoid YACC typo inherited from Autoconf.
|
build: avoid YACC typo inherited from Autoconf.
|
||||||
|
|||||||
2
NEWS
2
NEWS
@@ -3,6 +3,8 @@ Bison News
|
|||||||
|
|
||||||
* Changes in version 2.5.1 (????-??-??):
|
* Changes in version 2.5.1 (????-??-??):
|
||||||
|
|
||||||
|
** Some portability problems in the test suite have been fixed.
|
||||||
|
|
||||||
** Minor improvements have been made to the manual.
|
** Minor improvements have been made to the manual.
|
||||||
|
|
||||||
* Changes in version 2.5 (2011-05-14):
|
* Changes in version 2.5 (2011-05-14):
|
||||||
|
|||||||
1
THANKS
1
THANKS
@@ -107,6 +107,7 @@ Tys Lefering twlevo@gmail.com
|
|||||||
Vin Shelton acs@alumni.princeton.edu
|
Vin Shelton acs@alumni.princeton.edu
|
||||||
W.C.A. Wijngaards wouter@NLnetLabs.nl
|
W.C.A. Wijngaards wouter@NLnetLabs.nl
|
||||||
Wayne Green wayne@infosavvy.com
|
Wayne Green wayne@infosavvy.com
|
||||||
|
Wolfgang S. Kechel wolfgang.kechel@prs.de
|
||||||
Wolfram Wagner ww@mpi-sb.mpg.de
|
Wolfram Wagner ww@mpi-sb.mpg.de
|
||||||
Wwp subscript@free.fr
|
Wwp subscript@free.fr
|
||||||
Zack Weinberg zack@codesourcery.com
|
Zack Weinberg zack@codesourcery.com
|
||||||
|
|||||||
@@ -778,8 +778,7 @@ dnl In the case of the syntax error, the parser recovers, so it returns 0.
|
|||||||
# It reported 80 SR && 99 RR conflicts instead of 78/10!!!
|
# It reported 80 SR && 99 RR conflicts instead of 78/10!!!
|
||||||
|
|
||||||
AT_TEST_EXISTING_GRAMMAR([[GNU Cim Grammar]],
|
AT_TEST_EXISTING_GRAMMAR([[GNU Cim Grammar]],
|
||||||
[[%union {}
|
[[
|
||||||
|
|
||||||
%token
|
%token
|
||||||
HACTIVATE HAFTER /*HAND*/ HARRAY HAT
|
HACTIVATE HAFTER /*HAND*/ HARRAY HAT
|
||||||
HBEFORE HBEGIN HBOOLEAN
|
HBEFORE HBEGIN HBOOLEAN
|
||||||
@@ -1400,7 +1399,6 @@ State 427 conflicts: 9 shift/reduce, 2 reduce/reduce
|
|||||||
|
|
||||||
AT_TEST_EXISTING_GRAMMAR([[GNU pic (Groff 1.18.1) Grammar]],
|
AT_TEST_EXISTING_GRAMMAR([[GNU pic (Groff 1.18.1) Grammar]],
|
||||||
[[%error-verbose
|
[[%error-verbose
|
||||||
%union {}
|
|
||||||
|
|
||||||
%token LABEL
|
%token LABEL
|
||||||
%token VARIABLE
|
%token VARIABLE
|
||||||
@@ -1950,7 +1948,7 @@ dnl without being followed by "of".)
|
|||||||
[[VARIABLE, '=', LABEL, LEFT, DOT_X]],
|
[[VARIABLE, '=', LABEL, LEFT, DOT_X]],
|
||||||
|
|
||||||
dnl BISON-STDERR
|
dnl BISON-STDERR
|
||||||
[[input.y:471.11-48: warning: rule useless in parser due to conflicts: path: ORDINAL LAST object_type relative_path
|
[[input.y:470.11-48: warning: rule useless in parser due to conflicts: path: ORDINAL LAST object_type relative_path
|
||||||
]],
|
]],
|
||||||
|
|
||||||
dnl LAST-STATE
|
dnl LAST-STATE
|
||||||
|
|||||||
Reference in New Issue
Block a user