[comp.lang.c++] cfront 2.0 bug 900217_04

rfg@paris.ics.uci.edu (Ronald Guilmette) (02/18/90)

// cfront 2.0 bug 900217_04

// Cfront aborts with an internal error when confronted with cases where the
// name of a class type is used in a friend declaration if (and when) the
// name of that class 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.

class class0;

struct class1 {
  int class0;

  friend class class0;
};

int main () { return 0; }