bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bison 1.875 Bug & Fix


From: Bob Floyd
Subject: Bison 1.875 Bug & Fix
Date: Fri, 26 Sep 2003 13:06:01 -0700

Hi,

Take a look at "parse-gram.y" line 399:

| "%%" EPILOGUE
    {
399:      epilogue_augment ($2, @2);
      scanner_last_string_free ();
    }

Since "EPILOGUE" is a fabrication there is no line & file information
associated with it, so @2.file is garbage and causes a core dump (at
least on Windows XP). I think the correct code should look like:

      epilogue_augment ($2, @1);

Thereby referring to the location of "%%".

Bob Floyd






reply via email to

[Prev in Thread] Current Thread [Next in Thread]