Path: utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!mote.umb.edu!karl From: karl@mote.umb.edu ("Karl Berry.") Newsgroups: gnu.g++.bug Subject: segmentation violation Message-ID: <8903211955.AA10913@mote.umb.edu> Date: 21 Mar 89 19:55:19 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 26 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.