On Wed, 17 May 2006, Joel E. Denny wrote: > On Wed, 17 May 2006, Derek M Jones wrote: > > > On this cut down example I also get a null pointer dereference > > at line 1616 of the generated .c file. > > Thanks for the report. I'll install a patch for this tomorrow.
Here's the patch. I'll install it once the list archives update so I know the URL of the original message. Paul, this is a pretty obvious patch. Should we slip it in before the release? 2006-05-17 Joel E. Denny <[EMAIL PROTECTED]> * data/glr.c (yyreportTree): Make room in yystates for state preceding RHS. This fixes the segmentation fault reported by Derek M. Jones in < >. * THANKS: Add Derek M. Jones. Update my email address. Fix typo in Steve Murphy's name. Index: THANKS =================================================================== RCS file: /sources/bison/bison/THANKS,v retrieving revision 1.66 diff -p -u -r1.66 THANKS --- THANKS 14 May 2006 21:00:37 -0000 1.66 +++ THANKS 17 May 2006 06:20:08 -0000 @@ -21,6 +21,7 @@ Cris Bailiff c.bailiff+biso Cris van Pelt [EMAIL PROTECTED] Daniel Hagerty [EMAIL PROTECTED] David J. MacKenzie [EMAIL PROTECTED] +Derek M. Jones [EMAIL PROTECTED] Dick Streefland [EMAIL PROTECTED] Enrico Scholz [EMAIL PROTECTED] Evgeny Stambulchik [EMAIL PROTECTED] @@ -34,7 +35,7 @@ Jan Nieuwenhuizen [EMAIL PROTECTED] Jesse Thilo [EMAIL PROTECTED] Jim Kent [EMAIL PROTECTED] Jim Meyering [EMAIL PROTECTED] -Joel E. Denny [EMAIL PROTECTED] +Joel E. Denny [EMAIL PROTECTED] Juan Manuel Guerrero [EMAIL PROTECTED] Kees Zeelenberg [EMAIL PROTECTED] Keith Browne [EMAIL PROTECTED] @@ -67,7 +68,7 @@ Raja R Harinath [EMAIL PROTECTED] Richard Stallman [EMAIL PROTECTED] Robert Anisko [EMAIL PROTECTED] Shura [EMAIL PROTECTED] -Steve Murhpy [EMAIL PROTECTED] +Steve Murphy [EMAIL PROTECTED] Tim Josling [EMAIL PROTECTED] Tim Van Holder [EMAIL PROTECTED] Tom Lane [EMAIL PROTECTED] Index: data/glr.c =================================================================== RCS file: /sources/bison/bison/data/glr.c,v retrieving revision 1.174 diff -p -u -r1.174 glr.c --- data/glr.c 15 May 2006 06:13:53 -0000 1.174 +++ data/glr.c 17 May 2006 06:20:11 -0000 @@ -1741,7 +1741,7 @@ yyreportTree (yySemanticOption* yyx, int int yynrhs = yyrhsLength (yyx->yyrule); int yyi; yyGLRState* yys; - yyGLRState* yystates[YYMAXRHS]; + yyGLRState* yystates[1 + YYMAXRHS]; yyGLRState yyleftmost_state; for (yyi = yynrhs, yys = yyx->yystate; 0 < yyi; yyi -= 1, yys = yys->yypred) _______________________________________________ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison