karl@mote.umb.edu ("Karl Berry.") (03/22/89)
The following short program causes a segmentation violation. I admit the
program is erroneous -- I'm using a class variable as a method.
This is g++ 1.34.0 on a Sun 3 running 3.4.
karl@umb.edu
class c {
public:
void method();
private:
int get_one;
};
void
c::method()
{
int i = get_one();
}
g++ version 1.34.0
/usr/local/gnu/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_FPU__ -Dmc68020 oops.cc /tmp/cca10910.cpp
GNU CPP version 1.34
/usr/local/gnu/lib/gcc-c++ /tmp/cca10910.cpp -quiet -dumpbase oops.cc -noreg -version -o /tmp/cca10910.s
Program c++ got fatal signal 11.