Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!flora.ccs.northeastern.edu!kenb From: kenb@flora.ccs.northeastern.edu (kenneth baclawski) Newsgroups: gnu.g++.bug Subject: (none) Message-ID: <8910040029.AA01293@flora.CCS.Northeastern.EDU> Date: 4 Oct 89 00:29:16 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 24 /* Problem with protected members in GNU C++ Compilation: g++ -v -c protect.c g++ version 1.35.1- /kens-disk/k/gnu/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__cplusplus -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 protect.c /tmp/cca08429.cpp GNU CPP version 1.35 /kens-disk/k/gnu/lib/gcc-cc1plus /tmp/cca08429.cpp -quiet -dumpbase protect.c -noreg -version -o /tmp/cca08429.s GNU C++ version 1.35.1- (68k, MIT syntax) compiled by GNU C version 1.35. In method struct derived *derived::derived (struct base &): protect.c:10: member `a' is a protected member of class `base' */ class base { protected: int a; }; class derived : public base { public: derived (base& y) { a = y.a; } };