Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!jarthur!uci-ics!gateway From: rfg@paris.ics.uci.edu (Ronald Guilmette) Newsgroups: comp.lang.c++ Subject: cfront 2.0 bug 900214_03 Message-ID: <25DA6B8F.24446@paris.ics.uci.edu> Date: 15 Feb 90 08:42:55 GMT Organization: UC Irvine Department of ICS Lines: 26 // cfront 2.0 bug 900214_03 // cfront fails to allow pointers to members to be dereferenced without // prefix object specifications within member functions of the same class. // g++ allows this reasonable shorthand notation. struct struct0 { int data_member; void function_member (); }; int struct0::*dmp; int (struct0::*fmp) (); int i; void struct0::function_member () { i = (this->*fmp) (); i = this->*dmp; i = (*fmp) (); // gets bogus error i = *dmp; // gets bogus error } int main () { return 0; }