#52 Compiling fails with bison 2.4.1

closed-fixed
nobody
None
5
2009-07-02
2009-01-02
Robert
No

Compiling the nesc compiler fails with bison 2.4.1

Tested Versions:
1.2.9
1.3

Error Message:
cd . && m4 c-parse.gperf | grep -v '^$' | \ gperf -p -j1 -i 1 -g -o -t -G -N is_reserved_word -k1,3,8,$ >c-gperf.h-
mv c-gperf.h- c-gperf.h
bison -dv c-parse.y
c-parse.y:2043.19-20: $$ for the midrule at $5 of `structdef' has no declared type
c-parse.y:2049.19-20: $$ for the midrule at $6 of `structdef' has no declared type
c-parse.y:2059.19-20: $$ for the midrule at $5 of `structdef' has no declared type
c-parse.y:2063.19-20: $$ for the midrule at $3 of `structdef' has no declared type
make[1]: *** [c-parse.tab.c] Error 1

Background:
As far as I understand, this is an error in the grammar falsely ignored in bison until version 2.3.
References:
http://lists.gnu.org/archive/html/bug-bison/2008-11/msg00013.html
http://lists.gnu.org/archive/html/bug-bison/2008-11/msg00015.html

Changing '$$' to the following in the rejected lines allows compilation:
$<u.telement>$

Discussion

  • David Gay

    David Gay - 2009-02-17

    Thanks, will fix for 1.3.1.

     
  • David Gay

    David Gay - 2009-07-02

    Thanks! Will show up in 1.3.1 release.

     
  • David Gay

    David Gay - 2009-07-02
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks