[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GNU bison 1.75 solaris bug (with workaround).
From: |
Rein Tollevik |
Subject: |
GNU bison 1.75 solaris bug (with workaround). |
Date: |
Tue, 22 Oct 2002 00:08:39 +0200 (CEST) |
Bison 1.75 fails the following tests when compiled with the Sun Forte C
compiler:
Simple GLR Calculator.
61: calc.at:480 FAILED near `calc.at:480'
62: calc.at:482 FAILED near `calc.at:482'
63: calc.at:483 ok
64: calc.at:484 FAILED near `calc.at:484'
65: calc.at:485 FAILED near `calc.at:485'
66: calc.at:486 FAILED near `calc.at:486'
67: calc.at:487 FAILED near `calc.at:487'
68: calc.at:489 ok
69: calc.at:491 ok
70: calc.at:493 FAILED near `calc.at:493'
71: calc.at:494 ok
The reason for the failures are that the struct yyltype defined in
data/glr.c ends up as en empty struct. I don't have the ANSI C book
around, so I don't not sure whether this is allowed or not, but gcc
also gives a warning when run with -pedantic.
The small patch at the end fixes the problem.
--
Rein Tollevik Email: address@hidden
Senior System Administrator Phone: +47 22 95 81 96
Basefarm AS Fax: +47 22 95 82 10
Index: drift/gnu/bison/data/glr.c
diff -c drift/gnu/bison/data/glr.c:1.1.1.1 drift/gnu/bison/data/glr.c:1.2
*** drift/gnu/bison/data/glr.c:1.1.1.1 Mon Oct 21 21:29:25 2002
--- drift/gnu/bison/data/glr.c Mon Oct 21 23:09:59 2002
***************
*** 172,178 ****
int first_line;
int first_column;
int last_line;
! int last_column;])[
} yyltype;
# define YYLTYPE ]b4_ltype[
# define YYLTYPE_IS_TRIVIAL 1
--- 172,179 ----
int first_line;
int first_column;
int last_line;
! int last_column;],[
! int dummy;])[
} yyltype;
# define YYLTYPE ]b4_ltype[
# define YYLTYPE_IS_TRIVIAL 1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- GNU bison 1.75 solaris bug (with workaround).,
Rein Tollevik <=