Bug#140606: gcc-3.0: ICE in incomplete_type_error
Package: gcc-3.0
Version: 1:3.0.4-6
Severity: normal
aps100@cyclone:~/tmp$ gcc-2.95 -c foo.c
foo.c: In function `foo':
foo.c:6: field `d' has incomplete type
aps100@cyclone:~/tmp$ gcc-3.0 -c foo.c
foo.c: In function `foo':
foo.c:8: Internal compiler error in incomplete_type_error, at c-typeck.c:157
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
foo.c:
void foo(void)
{
struct
{
char *n, *d[]; /* <----- This is not valid */
} m;
m.d;
}
char *d[] is an incomplete type (should have been **d), but this is
missed by gcc 3.0, so it breaks later.
(This is stripped down to the bare minimum needed to trigger the bug)
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux cyclone 2.4.13 #7 Wed Mar 20 23:51:20 GMT 2002 i686
Locale: LANG=C, LC_CTYPE=
Versions of packages gcc-3.0 depends on:
ii binutils 2.12.90.0.1-1 The GNU assembler, linker and bina
ii cpp-3.0 1:3.0.4-6 The GNU C preprocessor.
ii gcc-3.0-base 1:3.0.4-6 The GNU Compiler Collection (base
ii libc6 2.2.5-3 GNU C Library: Shared libraries an
ii libgcc1 1:3.0.4-6 GCC support library.
--
.''`. ** Debian GNU/Linux ** | Andrew Suffield
: :' : http://www.debian.org/ | Dept. of Computing,
`. `' | Imperial College,
`- -><- | London, UK
--
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: