bison-patches
[Top][All Lists]
Advanced

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

Re: master: tests: lalr1.cc: check syntax_error


From: Tim Landscheidt
Subject: Re: master: tests: lalr1.cc: check syntax_error
Date: Sat, 11 Feb 2012 18:19:25 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Akim Demaille <address@hidden> wrote:

> To be installed in master.
> [...]

Sorry for not catching this earlier, but this breaks a test
for me:

| #                             -*- compilation -*-
| 273. c++.at:457: testing Syntax error as exception ...
| ./c++.at:520: bison -o input.cc input.yy
| ./c++.at:521: $BISON_CXX_WORKS
| stderr:
| stdout:
| ./c++.at:521: $CXX $CXXFLAGS $CPPFLAGS $LDFLAGS -o input input.cc $LIBS
| stderr:
| input.yy: In function 'int main()':
| input.yy:65: error: 'getenv' was not declared in this scope
| stdout:
| ./c++.at:521: exit code was 1, expected 0
| 273. c++.at:457: 273. Syntax error as exception (c++.at:457): FAILED 
(c++.at:521)

input.yy:65 is
"parser.set_debug_level(!!getenv("YYDEBUG"));".  There is
another use of getenv() in c++.at that passes, which sug-
gests that one of the #includes there in turn includes the
<cstdlib> or <stdlib.h> ("stdlib" doesn't occur in the test-
suite directory for the passing tests).

Tim




reply via email to

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