bug-bison
[Top][All Lists]
Advanced

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

Re: bug in bison-1.875


From: Martin MOKREJŠ
Subject: Re: bug in bison-1.875
Date: Thu, 24 Apr 2003 00:26:32 +0200 (CEST)

On Wed, 23 Apr 2003, Paul Eggert wrote:

> Martin MOKREJ? <address@hidden> writes:
>
> >  However, although cc crashes on the _Bool testcase run by configure, 
> > configure
> > writes to stdout that _Bool is available. Shouldn' it say no?
>
> Yes, it should say "no".
>
> > checking for stdbool.h that conforms to C99... no
> > checking for _Bool... yes
>
> What is the corresponding log output?  I am looking for the output of
> the following fragment in configure.  If the compiler crashed, then
> the first "ac_status=$?" quoted below should set ac_status to a
> nonzero value.  The next "echo" statement logs that value, so I'd
> like to see what it is.
>


I've right now handy the old bugreport. As far as I can see, it used to say
"no". I'll double check current cvs tommorow. But $?=1 should be the
answer, right?


configure:4876: checking for stdbool.h that conforms to C99
configure:4930: cc -c -O2 -arch ev56 -I/software/@sys/usr/include 
-I/usr/local/include -I/usr/local/openssl/include conftest.
c >&5
cc: Error: configure, line 4938: Bug found in compiler: 
generate_address_constant : Unexpected opcode. (compilerbug)
          bool e = &s;
-------------------^
Internal compiler error detected at line 1512 in file 
/usr/proj/decc2/ccdtk-v4-2/src/me_gemc/initgen.c.
cc: Fatal: A memory access violation (bus error or segmentation fault)
has occurred.  Please submit a problem report.
configure:4933: $? = 1
configure: failed program was:
| #line 4881 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU Bison"
| #define PACKAGE_TARNAME "bison"
| #define PACKAGE_VERSION "1.875a"
| #define PACKAGE_STRING "GNU Bison 1.875a"
| #define PACKAGE_BUGREPORT "address@hidden"
| #define PACKAGE "bison"
| #define VERSION "1.875a"
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define YYTEXT_POINTER 1
| #define M4 "/software/@sys/usr/bin/m4"
| #define STDC_HEADERS 1
| #define HAVE_CTYPE_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
|
|         #include <stdbool.h>
|         #ifndef bool
|          "error: bool is not defined"
|         #endif
|         #ifndef false
|          "error: false is not defined"
|         #endif
|         #if false
|          "error: false is not 0"
|         #endif
|         #ifndef true
|          "error: false is not defined"
|         #endif
|         #if true != 1
|          "error: true is not 1"
|         #endif
|         #ifndef __bool_true_false_are_defined
|          "error: __bool_true_false_are_defined is not defined"
|         #endif
|
|         struct s { _Bool s: 1; _Bool t; } s;
|
|         char a[true == 1 ? 1 : -1];
|         char b[false == 0 ? 1 : -1];
|         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
|         char d[(bool) -0.5 == true ? 1 : -1];
|         bool e = &s;
|         char f[(_Bool) -0.0 == false ? 1 : -1];
|         char g[true];
|         char h[sizeof (_Bool)];
|         char i[sizeof s.t];
|
| int
| main ()
| {
|  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
|   ;
|   return 0;
| }
configure:4950: result: no


-- 
Martin Mokrejs <address@hidden>, <address@hidden>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585




reply via email to

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