home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!sun1.lrz-muenchen.de!t2101fs
- From: t2101fs@sun1.lrz-muenchen.de
- Newsgroups: gnu.gcc.bug
- Subject: Bug in g++ 2.3.3
- Date: 25 Jan 1993 21:18:40 -0500
- Organization: GNUs Not Usenet
- Lines: 29
- Sender: daemon@cis.ohio-state.edu
- Approved: bug-gcc@prep.ai.mit.edu
- Distribution: gnu
- Message-ID: <9301251902.AA03323@sun1.lrz-muenchen.de>
-
- System i386 / SCO 3.2R2
- gcc version 2.3.3
-
- Compiling the following file results in an error message:
- g++ xxx.cc -o xxx
- xxx.cc: In function `int main ()':
- xxx.cc:15: member `xxx' is private
-
- But B :: xxx () isn't private ....
-
- --- file xxx.cc ---
- class A
- {
- int xxx;
- };
-
- class B : A
- {
- public:
- void xxx ();
- };
-
- main ()
- {
- B b;
- b . xxx ();
- }
- --- end of file xxx.cc ---
-
-