[gnu.g++.bug] struct init bug in g++ 1.36.2

whitcomb@VIVALDI.BERKELEY.EDU (Gregg Whitcomb) (01/12/90)

I thought I saw a bug posting concerning this one, but couldn't locate
it so with the risk of redundancy here it goes:

machine: decstation 3100
gcc: 1.36.91
g++: 1.36.2

description: structure initialization doesn't work on decstation g++ but
works okay on vax/ultrix.

struct test_struct { int int1, int2; } test[] ={ 1,2};
main()
{
}



vivaldi% g++ -v testseg2.cc
g++ version 1.36.2 (based on GCC 1.36)
 /usr/local/lib/gcc-cpp -+ -v -undef -D__GNUC__ -D__GNUG__ -D__cplusplus -Dultri
x -Dbsd4_2 -DMIPSEL -Dhost_mips -Dmips -Dunix -DR3000 -DLANGUAGE_C -DSYSTYPE_BSD
 -D__ultrix__ -D__bsd4_2__ -D__MIPSEL__ -D__host_mips__ -D__mips__ -D__unix__ -D
__R3000__ -D__LANGUAGE_C__ -D__SYSTYPE_BSD__ testseg2.cc /usr/tmp/cca19008.cpp
GNU CPP version 1.36.91
 /usr/local/lib/gcc-cc1plus /usr/tmp/cca19008.cpp -quiet -dumpbase testseg2.cc -
version -o /usr/tmp/cca19008.s
GNU C++ version 1.36.2 (based on GCC 1.36) (AL-MIPS 1.11) <Decstation>
 compiled by GNU C version 1.36.91.
default target switches: -munix -mnofixed-ovfl -mG0 -mG1
testseg2.cc:1: Segmentation violation
g++: Program cc1plus got fatal signal 11.


-Gregg (whitcomb@vivaldi.berkeley.edu)