This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/21873] New: infinite warning loop on bad array initializer
- From: "allans at m83 dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2005 01:53:19 -0000
- Subject: [Bug c/21873] New: infinite warning loop on bad array initializer
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
struct foo {
int a;
int b;
} bar [1][0] = { 3, 4 };
// warnings continue forever
s.c:5: warning: excess elements in array initializer
s.c:5: warning: (near initialization for `bar')
s.c:5: warning: excess elements in array initializer
s.c:5: warning: (near initialization for `bar')
gcc: Internal error: Interrupt (program cc1) // I pressed ctrl-C
Please submit a full bug report.
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with: /gcc/gcc-3.3.3-3/configure --verbose --prefix=/usr
--exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/l
ib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,java,objc,
pascal --enable-nls --without-included-gettext --enable-libgcj
--with-system-zlib --enable-interpreter --enable-threads=
posix --enable-java-gc=boehm --enable-sjlj-exceptions
--disable-version-specific-runtime-libs --disable-win32-registry
Thread model: posix
gcc version 3.3.3 (cygwin special)
Same behaviour on arm-elf-gcc 3.2.1
Reading specs from /opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/specs
Configured with:
/local/demonweb/tools/ecos-gnutools-v1.4/r2/arm-elf/cygwin/tar_bz2/source/gcc-3.2.1/configure
--target
arm-elf
--prefix=/local/demonweb/tools/ecos-gnutools-v1.4/r2/arm-elf/cygwin/tar_bz2/opt/ecos/gnutools/arm-elf
--enable-
anguages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib
--with-gxx-include-dir=/local/demonweb/tools/ecos-gnutools-v1.
/r2/arm-elf/cygwin/tar_bz2/opt/ecos/gnutools/arm-elf/arm-elf/include
Thread model: single
gcc version 3.2.1
--
Summary: infinite warning loop on bad array initializer
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: allans at m83 dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21873