This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/1715: Tree check: expected class 't', have 'x' (error_mark)
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/1715: Tree check: expected class 't', have 'x' (error_mark)
- From: schmid at snake dot iap dot physik dot tu-darmstadt dot de
- Date: Sat, 20 Jan 2001 22:34:44 +0100
>Number: 1715
>Category: c
>Synopsis: Tree check: expected class 't', have 'x' (error_mark)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Sat Jan 20 13:36:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Peter Schmid
>Release: 2.97 20010118 (experimental)
>Organization:
TU Darmstadt
>Environment:
System: Linux kiste 2.4.0 #25 Tue Jan 16 01:22:25 CET 2001 i686 unknown
Architecture: i686
glibc 2.1.3
GNU assembler version 2.10.91 (i686-pc-linux-gnu) using BFD version 2.10.1.0.4
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --enable-nls --enable-shared
>Description:
The following bogus source code contained in ti2.c generates the
message "Tree check: expected class 't', have 'x' (error_mark)" when
compiled by gcc-20010118.
>How-To-Repeat:
source file ti2.c
int b[NR_IRQS] = { [0 ... NR_IRQS-1] = { }};
preprocessed source file
ti2.i
# 1 "ti2.c"
int b[NR_IRQS] = { [0 ... NR_IRQS-1] = { }};
Compiling the source file
gcc -v -Wall ti2.c -save-temps
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/specs
Configured with: ../gcc/configure --enable-nls --enable-shared
gcc version 2.97 20010118 (experimental)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/cpp0 -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=97 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__STDC_HOSTED__=1 -Wall -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ ti2.c ti2.i
GNU CPP version 2.97 20010118 (experimental) (cpplib) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/include
/usr/local/i686-pc-linux-gnu/include
/usr/include
End of search list.
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/cc1 -fpreprocessed ti2.i -quiet -dumpbase ti2.c -Wall -version -o ti2.s
GNU CPP version 2.97 20010118 (experimental) (cpplib) (i386 Linux/ELF)
GNU C version 2.97 20010118 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 2.97 20010118 (experimental).
ti2.c:1: `NR_IRQS' undeclared here (not in a function)
ti2.c:1: `NR_IRQS' undeclared here (not in a function)
ti2.c:1: Tree check: expected class 't', have 'x' (error_mark)
confused by earlier errors, bailing out
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: