Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!moray!urchin!f506.n106.z1.fidonet.org!Roy.Browning From: Roy.Browning@f506.n106.z1.fidonet.org (Roy Browning) Newsgroups: comp.lang.c++ Subject: problems with cfront 2.0 when self compiled Message-ID: <6409.258CE39B@urchin.fidonet.org> Date: 17 Dec 89 18:53:43 GMT Sender: ufgate@urchin.fidonet.org (newsout1.26) Organization: FidoNet node 1:106/506 - Fulcrum's Edge, Spring TX Lines: 30 > From: peter@mit-amt.MEDIA.MIT.EDU (Peter Schroeder) > Date: 15 Dec 89 15:42:13 GMT > Organization: MIT Media Lab, Cambridge, MA > Message-ID: <1218@mit-amt.MEDIA.MIT.EDU> > Newsgroups: comp.lang.c++ > class base{ > private: > int a; > public: > int& bar() const; > }; > > class derived : private base{ // this is line 8 > public: > base::bar; // the syntax is correct, isn't it? > }; Peter: Your code fragment compiles without complaint using the latest version of Zortech C++. You are explicitly allowing the same level of access in the derived class as the base class. According to Lippman page 318 you should be able to exempt individual members from the private derivation. A quick answer, Roy Browning