This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28085] New: initialization of zero-sized array causes internal compiler error
- From: "bertrand dot marlier at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jun 2006 14:38:47 -0000
- Subject: [Bug c++/28085] New: initialization of zero-sized array causes internal compiler error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Following is the sequence to reproduce this issue and full g++ -v output.
$ cat source.cpp
int tab[0]={};
main()
{
}
$ g++ source.cpp
source.cpp:2: internal compiler error: in tree_low_cst, at tree.c:3255
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.
$ g++ -v
Lecture des spécification à partir de /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configuré avec: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--enable-__cxa_atexit --with-system-zlib --enable-nls
--without-included-gettext --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Modèle de thread: posix
version gcc 3.3.5 (Debian 1:3.3.5-13)
$
system is Debian Sarge 3.1 for x86
--
Summary: initialization of zero-sized array causes internal
compiler error
Product: gcc
Version: 3.3.5
Status: UNCONFIRMED
Severity: trivial
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bertrand dot marlier at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28085