public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/21873] New: infinite warning loop on bad array initializer
@ 2005-06-02  1:53 allans at m83 dot com
  2005-06-03 23:30 ` [Bug c/21873] [3.4/4.0/4.1 Regression] " jsm28 at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: allans at m83 dot com @ 2005-06-02  1:53 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-07-28 23:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-02  1:53 [Bug c/21873] New: infinite warning loop on bad array initializer allans at m83 dot com
2005-06-03 23:30 ` [Bug c/21873] [3.4/4.0/4.1 Regression] " jsm28 at gcc dot gnu dot org
2005-06-04  1:35 ` cvs-commit at gcc dot gnu dot org
2005-06-04  1:44 ` cvs-commit at gcc dot gnu dot org
2005-06-04 15:17 ` [Bug c/21873] [3.4 " pinskia at gcc dot gnu dot org
2005-07-28 23:02 ` cvs-commit at gcc dot gnu dot org
2005-07-28 23:09 ` jsm28 at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).