[gnu.g++.bug] Problem with static double array

ELDER%VAX.OXFORD.AC.UK@MITVMA.MIT.EDU (03/24/89)

Version: 1.34.0
System:  Sun-4110 running SunOS 4.0.1
Files:   tm.h -> tm-sparc.h   md -> sparc.md

Source file:

static double s[16];

main()
$
    s[0] = 0;


Problem: compiling and running using
    g++ -o try try.cc
    try

provokes the message
    Bus error (core dumped)

Replacing double by float causes the problem to go away.
The original source file seems to work OK with gcc 1.34.0


PS A second general problem is that I cannot get g++ to produce
   dynamically linked executables, although gcc will do so.
   Is this a problem with ld++ ?

John Elder
Department of Biochemistry
University of Oxford