home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / gcc / bug / 3248 < prev    next >
Encoding:
Text File  |  1993-01-25  |  754 b   |  42 lines

  1. Path: sparky!uunet!cis.ohio-state.edu!sun1.lrz-muenchen.de!t2101fs
  2. From: t2101fs@sun1.lrz-muenchen.de
  3. Newsgroups: gnu.gcc.bug
  4. Subject: Bug in g++ 2.3.3
  5. Date: 25 Jan 1993 21:18:40 -0500
  6. Organization: GNUs Not Usenet
  7. Lines: 29
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gcc@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <9301251902.AA03323@sun1.lrz-muenchen.de>
  12.  
  13. System i386 / SCO 3.2R2
  14. gcc version 2.3.3
  15.  
  16. Compiling the following file results in an error message:
  17. g++     xxx.cc   -o xxx
  18. xxx.cc: In function `int  main ()':
  19. xxx.cc:15: member `xxx' is private
  20.  
  21. But B :: xxx () isn't private ....
  22.  
  23. --- file xxx.cc ---
  24. class A
  25. {
  26.     int xxx;
  27. };
  28.  
  29. class B : A
  30. {
  31. public:
  32.     void xxx ();
  33. };
  34.  
  35. main ()
  36. {
  37.     B b;
  38.     b . xxx ();
  39. }
  40. --- end of file xxx.cc ---
  41.  
  42.