Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!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_04 Message-ID: <25DE60C8.23797@paris.ics.uci.edu> Date: 18 Feb 90 08:46:01 GMT Organization: UC Irvine Department of ICS Lines: 21 // 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; }