repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
parse
/
access4.C
blob
d3870bd3497f4d19c2a8088a74c8867a4409f9b9
1
// { dg-do compile }
2
3
// Origin: Mike Reed <mike.reed@amadron.com>
4
5
// PR c++/11174: Access checking of pointer-to-member function
6
7
class A {
8
protected:
9
void foo() {} // { dg-error "protected" }
10
public:
11
A();
12
};
13
14
class B : public A {
15
void bar() {
16
A a;
17
void (A::*pmf)() = &A::foo; // { dg-error "this context" }
18
(a.*pmf)();
19
}
20
};