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
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend13.C
blob
6eebf6b951f4942009c04019531133c8d885b12d
1
// { dg-do compile }
2
3
// Perform access checking to parameter and return type of
4
// function template correctly when only specialization is friend.
5
6
template <class T>
7
typename T::Inner
8
foo () {
9
return typename T::Inner();
10
}
11
12
class Outer {
13
private:
14
struct Inner {};
15
16
friend Outer::Inner foo<Outer> ();
17
};
18
19
void f() {
20
foo<Outer>();
21
}