Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!brutus.cs.uiuc.edu!jarthur!uci-ics!gateway From: rfg@paris.ics.uci.edu (Ronald Guilmette) Newsgroups: comp.lang.c++ Subject: cfront 2.0 bug 900214_01 Message-ID: <25DA6B26.24297@paris.ics.uci.edu> Date: 15 Feb 90 08:41:10 GMT Organization: UC Irvine Department of ICS Lines: 29 // cfront 2.0 bug 900214_01 // cfront 2.0 generates only a warning when an attempt is made to assign the // address of a "bound" member function to a pointer-to-member-function // variable. // Furthermore, cfront generates invalid C code for such cases. // Such cases should either generate errors or be perfectly legal. If // such usage is deemed legal, no warnings should be issued and proper C // code should be generated. struct struct0 { int struct0_function_member_0 (); }; int (struct0::*fmp) (); int (*fp) (); struct0 *ptr; void global_function_0 () { //fp = &ptr->struct0_function_member_0; // definitely illegal fmp = &ptr->struct0_function_member_0; // ERROR } int main () { return 0; }