repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
overload
/
defarg3.C
blob
d6819021ba2156fe98ed3ccb0776485a1e6697bb
1
// PR c++/37971
2
// { dg-do compile }
3
4
class C {
5
private:
6
static int f(int); // { dg-message "private" }
7
static int f(char);
8
};
9
10
class D {
11
public:
12
/* C::f is inaccessible, so this is an error, even if this function
13
is never called. */
14
static void g(int (*)(int) = C::f); // { dg-error "context" }
15
};