bug-bison
[Top][All Lists]
Advanced

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

Re: [GNU Bison 2.3] testsuite: 129 failed


From: Paul Eggert
Subject: Re: [GNU Bison 2.3] testsuite: 129 failed
Date: Thu, 05 Oct 2006 12:14:27 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Tom Lane <address@hidden> writes:

> You probably know about this already,

No, sorry, I don't.  Thanks for reporting it.

What happens when you try this?

$ cd tests
$ ./testsuite -v -d 129
$ cd testsuite.dir/129
$ gcc -g -DYYDEBUG -o foo expect2.c
$ gdb ./foo
(gdb) b main
(gdb) r
(gdb) p yydebug=1
(gdb) c

On my machine, the last command generates the following output, which
is correct.  Evidently your machine does something different and we
need to find out why.

Continuing.
Starting parse
Entering state 0
Reducing stack 0 by rule 1 (line 23):
-> $$ = nterm program ()
Entering state 1
Reading a token: Next token is token A ()
Shifting token A ()
Entering state 4
Reducing stack 0 by rule 6 (line 28):
   $1 = token A ()
-> $$ = nterm t ()
Entering state 7
Reducing stack 0 by rule 5 (line 27):
   $1 = nterm t ()
-> $$ = nterm e ()
Entering state 6
Reading a token: Next token is token '+' ()
Shifting token '+' ()
Entering state 10
Reading a token: Next token is token '+' ()
syntax error, unexpected '+', expecting A or B
Error: popping token '+' ()
Error: popping nterm e ()
Shifting token error ()
Entering state 3
Error: discarding token '+' ()
Reading a token: Next token is token $end ()
Error: discarding token $end ()
Reading a token: Next token is token $end ()
Cleanup: popping token error ()
Cleanup: popping nterm program ()
Cleanup: popping token $end ()

Program exited with code 01.




reply via email to

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