static variable in .C file kills egcs

dwhitney@localhost.localdomain dwhitney@localhost.localdomain
Sat Sep 12 02:25:00 GMT 1998


 localhost.dwhitney> g++ -v
Reading specs from /opt/egcs/lib/gcc-lib/powerpc-unknown-linux-gnulibc1/egcs-2.90.25/specs
gcc version egcs-2.90.25 980302 (egcs-1.0.2 prerelease)


The following static varaible, defined with file scope caused egcs to
have a "Internal compiler error".

#include "trackball.h"
#include "gesture.h"
#include "Command.h"	// for archive (should this really be done here? DJW)

#include <glu.h>

TrackBall trackball(0.8);


VwtHuman::VwtHuman(envlist *top)
    : human( (head_tracker_dimension()==2), (hand_tracker_dimension()==2) ),
      touchingobj(NULL)
{
 

----

The error is on the Trackball declaration line.  The program is obvisouly
much huger, but maybe this can give you can idea.

-Dave

dwhitney@cs.stanford.edu




More information about the Gcc-bugs mailing list