[Top][All Lists]
[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
- Bison 1.875 Bug & Fix,
Bob Floyd <=