repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
access16.C
blob
bb7ebccb8b587763087a4a153bc69cde08a0978f
1
// PR c++/23842
2
3
struct S;
4
extern S *p;
5
template <class T> int f(T*, int y = ((T*)p)->x) {
6
return y;
7
}
8
struct S {
9
private:
10
int x;
11
template <class U> friend int f(U*, int);
12
};
13
int g() {
14
return f(p);
15
}
16