Path: utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfg From: rfg@MCC.COM (Ron Guilmette) Newsgroups: gnu.g++.bug Subject: BUG in G++ 1.34.0 Message-ID: <8903150538.AA20125@riunite.aca.mcc.com> Date: 15 Mar 89 05:38:04 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 33 The following code produces what seems to be a bogus error message. Are methods allowed to be static? --------------------------------------------------------------------- // Check that a class method may be declared to be static #include "testinc.h" class c { public: static void method1 (); }; int test () { c c_object; c_object.method1 (); return 0; } static void c::method1 () { } ---------------------------------------------------------------------- g++ -Wall -Wwrite-strings -v -S x04.C g++ version 1.34.0.1 /usr/local/src/lib/1.34.0.1/sun3/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -Wall -D__HAVE_68881__ -Dmc68020 x04.C /tmp/cca20113.cpp GNU CPP version 1.34.0.1 /usr/local/src/lib/1.34.0.1/sun3/gcc-c++ /tmp/cca20113.cpp -quiet -dumpbase x04.C -Wall -Wwrite-strings -noreg -version -o x04.s GNU C++ version 1.34.0.1 (68k, MIT syntax) compiled by GNU C version 1.33. x04.C:7: sorry, not implemented: function declared static in class