aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/access3.C
blob: 7836fe55edd1b796e49ecae5bf419c97f814abb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Build don't link: 
// GROUPS passed access
// unsorted.2 file
// Date: Sat, 6 Jun 1992 18:23:03 -0400
// From: Brendan Kehoe <brendan@cs.widener.edu>
// Message-Id: <199206062223.AA22653@betty.cs.widener.edu>
// Subject: bug with access control to member functions

       class X {
	     void g (int); // ERROR - is private
        public:
          void g (double);
        };

        class Y : public X { void f() { g (1); } };// ERROR -