schmidt%blanche.ics.uci.edu@ORION.CF.UCI.EDU ("Douglas C. Schmidt") (11/24/88)
Hi, I believe the following is illegal in C++. The AT&T compiler complains that: ---------------------------------------- CC test.C: "test.C", line 14: error: foo::foo() is from a private base class ---------------------------------------- which makes sense. However, g++ 1.27 accepts this without complaint. Here's the code: ---------------------------------------- #include <stream.h> class foo { public: foo () { ; } }; class bar : foo { public: }; main () { bar b; } ---------------------------------------- thanks, Doug