Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ICS.UCI.EDU!rfg From: rfg@ICS.UCI.EDU Newsgroups: gnu.g++.bug Subject: possible bug in g++ 1.36.2 (01199001) Message-ID: <9001190913.aa21588@ICS.UCI.EDU> Date: 19 Jan 90 17:13:29 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 19 // This may be a bug, then again, it may not be. // It seems that both g++ and Cfront 2.0 effectively pre-scan // each class declaration and process all data member declarations // before then process any member function declarations. This // leads to the interesting error shown below. // Note that Cfront 2.0 does not even allow the initializer for the static // data member. struct foo { void bar () {} static void (foo::*member_func) (void) = foo::bar; /* ERROR */ }; // g++-01199001.bug.C:15: incomplete type `foo' does not have member `bar'