Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#144 2 tests fail because they are broken

2.5.37
open-accepted
Peter Martini
Test suite (9)
5
2014-05-05
2012-09-20
No

When running 'make check' for 2.5.37 (or 2.5.36) the two tests 'test-bison-yylloc' and 'test-bison-yylval' have failed because IMHO they are broken:

the generated file 'parser.h' declares testparse with argument 'void *' when YYPARSE_PARAM is defined or with argument 'void' otherwise.

That is fine when compiling parse.c which defines YYPARSE_PARAM as 'scanner' and defines testparse with argument 'void *'

When compiling main.c YYPARSE_PARAM is, however, undefined when including parse.h, but nevertheless there is an extern declaration for testparse with argument 'void *'. The result are compilation errors due to conflicting types.

Discussion

  • Peter Martini
    Peter Martini
    2012-09-29

    • assigned_to: nobody --> setpeterm
     
  • Will Estes
    Will Estes
    2012-11-01

    • status: open --> open-accepted
     
  • Will Estes
    Will Estes
    2012-11-01

    What version of bison are you using? From other reports of this issue, it appears to matter.

     
  • I am using bison-2.6.2 from 2012-08-03.

     
  • joshuacov
    joshuacov
    2013-02-18

    Those two tests are broken when trying to compile flex with bison-2.7.0-dirty. The tests themselves compile fine but I get a segmentation fault error when trying to execute them. This is easisly rerpoduceable when tryint to compile flex with latest bison from git.

     
  • This also still affects 2.5.39