rfg@paris.ics.uci.edu (Ronald Guilmette) (02/18/90)
// 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; }