From: Paul Eggert Date: Thu, 22 Jul 2004 14:42:11 +0000 (+0000) Subject: Fix bug with non-%union parsers that have printers or destructors, X-Git-Tag: BISON-2_0~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9cbf7c58ee9cfae686e2aaffa54f605e21b24b5;p=platform%2Fupstream%2Fbison.git Fix bug with non-%union parsers that have printers or destructors, which led to a Bison core dump. --- diff --git a/ChangeLog b/ChangeLog index 5211570..7f38696 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,22 @@ +2004-07-22 Paul Eggert + + Fix bug with non-%union parsers that have printers or destructors, + which led to a Bison core dump. Reported by Peter Fales in + . + + * data/c.m4 (b4_symbol_actions): Don't assume %union was used. + * data/lalr1.cc (yystype) [defined YYSTYPE]: Define to YYSTYPE, + not to our own type. + * src/output.c (symbol_destructors_output, symbol_printers_output): + Don't assume %union. + * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR, + AT_CHECK_PRINTER_AND_DESTRUCTOR): New argument + UNION-FLAG. All callers changed. + (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Don't assume %union. + Use type char, not unsigned int, when declaring an array of char; + this lets us remove a cast. + (Printers and Destructors): Add non-%union test cases. + 2004-06-21 Paul Eggert * doc/bison.texinfo: Minor editorial changes, mostly to the new