[Bug c++/19594] New: initializing a struct
hans dot buchmann at fhso dot ch
gcc-bugzilla@gcc.gnu.org
Sun Jan 23 20:34:00 GMT 2005
compiling the C++ code
-------------8<-------------8<-------------8<-------------8<-------------
struct Struct
{
unsigned data[];
};
Struct data=
{
0
};
-------------8<-------------8<-------------8<-------------8<-------------
with the command
g++ -O1 -c -o bug.o bug.cc
results in:
bug.cc:9: internal compiler error: in tree_low_cst, at tree.c:3816
compiler version: g++ -v
Using built-in specs.
Configured with: /home/buchmann/devel/gcc/dist/gcc-4.0-20050116/configure -v
--prefix=/home/buchmann/devel/gcc/host/gcc-4.0-20050116 --enable-languages=c,c++
--with-as=/home/buchmann/devel/gcc/host/gcc-4.0-20041024//bin/as
--with-ld=/home/buchmann/devel/gcc/host/gcc-4.0-20041024//bin/ld --with-newlib
Thread model: posix
gcc version 4.0.0 20050116 (experimental)
remarks:
gcc-3.4.3 -O0,1,2,3 crashes too
Best regards
Hans Buchmann
hans.buchmann@fhso.ch
--
Summary: initializing a struct
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hans dot buchmann at fhso dot ch
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19594
More information about the Gcc-bugs
mailing list