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
/
tc1
/
dr68.C
blob
253f049432d7e3c63e84fa53af13271fa2a9b0cd
1
// { dg-do compile }
2
// Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
3
// DR68: Grammar does not allow "friend class A<int>;"
4
5
namespace A{
6
class B{};
7
}
8
9
namespace B{
10
class A{};
11
class C{
12
friend class ::A::B;
13
};
14
}
15
16
17
template <typename> class K;
18
class J {
19
friend class K<int>;
20
};