#144 2 tests fail because they are broken

Test suite (9)

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.


  • 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.

  • Peter Breitenlohner

    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.

  • Dagobert Michelsen

    This also still affects 2.5.39

  • Will Estes

    Will Estes - 2015-11-18
    • status: open-accepted --> closed-fixed
  • Will Estes

    Will Estes - 2015-11-18
    As per #169, this is fixed in 2.6.0

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

No, thanks