Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!orion.oac.uci.edu!uci-ics!gateway From: rfg@paris.ics.uci.edu (Ronald Guilmette) Newsgroups: comp.lang.c++ Subject: cfront 2.0 bug 900217_01 Message-ID: <25DE6019.23512@paris.ics.uci.edu> Date: 18 Feb 90 08:43:05 GMT Organization: UC Irvine Department of ICS Lines: 31 // cfront 2.0 bug 900217_01 // Cfront fails to be able to cope with the case where the name of an // enumeration type is used to specify the type of a member function // parameter if (and when) the name of the enum type is also used to // declare a data member of the containing class. // The (new) rules regarding the overloading of names for both objects and // types do (I believe) make the following code legal. // g++ deals with the following code without complaint. // This code is also accepted by cfront if the typename `enum0' in both // parameter lists is preceeded by the word `enum'. enum enum0 { enum0_value_0, enum0_value_1 }; class class0 { int enum0; public: void member_function (enum0 e); // gets bogus (cascading) errors }; void class0::member_function (enum0 e) { } int main () { return 0; }