Package: bison Version: 1:2.3.dfsg-4 Severity: normal Hi:
The following program fails to produce a "syntax error" as it should. If it's built with byacc then it does fail as expected. $ make a yacc a.y conflicts: 1 shift/reduce mv -f y.tab.c a.c cc -c -o a.o a.c cc a.o -o a rm a.o a.c $ ./a $ rm a $ make YACC=byacc a byacc a.y byacc: 1 shift/reduce conflict. mv -f y.tab.c a.c cc -c -o a.o a.c cc a.o -o a rm a.o a.c $ ./a syntax error $ Cheers, -- System Information Debian Release: 3.1 Kernel Version: Linux gondolin 2.6.17-rc4 #1 SMP PREEMPT Wed May 17 17:28:00 EST 2006 i686 GNU/Linux Versions of the packages bison depends on: ii libc6 2.3.2.ds1-22sa GNU C Library: Shared libraries and Timezone ii m4 1.4.2-1 a macro processing language -- %{ #include <stdio.h> #include <stdlib.h> static int yylex(void); static void yyerror(const char *s); %} %token FOO BAR %% exp: expr { return $1; } ; expr: expr BAR expr { $$ = $1 + $3; } | FOO ; %% static int yylex(void) { static int count; switch (count++) { case 0: yylval = 1; return FOO; case 1: return BAR; case 2: yylval = 3; return FOO; case 3: yylval = 5; return FOO; default: return 0; } } int main(void) { return yyparse(); } static void yyerror(const char *s) { puts("syntax error"); exit(1); } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]