2 // GROUPS passed visibility
4 // From: doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott)
5 // Date: Tue, 10 Aug 93 10:06:33 PDT
6 // Subject: G++ 2.4.5 allows access to protected base members
7 // Message-ID: <9308101706.AA04485@foxtrot.ccmrc.ucsb.edu>
11 void protectedBaseFunction() {} // { dg-error "" } protected
17 class Derived : public Base {
20 void noticeThisFunction(Base *);
25 Derived::noticeThisFunction(Base *b) {
26 b->protectedBaseFunction(); // ARM says this is not allowed// { dg-error "" } .*
27 // since it is not called on 'this'
33 d.noticeThisFunction(&b);
34 printf("gpptest run\n");// { dg-error "" } .*