Article View: gnu.g++.bug
Article #752possible bug in g++ 1.36.2 (01199001)
From: rfg
Date: Fri, 19 Jan 1990 17:13
Date: Fri, 19 Jan 1990 17:13
19 lines
948 bytes
948 bytes
// 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'
Technical Details
Message-ID:
<9001190913.aa21588@ICS.UCI.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ICS.UCI.EDU!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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