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
[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend19.C
blob
73883b2a05afdbfe5941e1bff28d0738129cc129
1
// { dg-do compile }
2
3
// Origin: Benjamin Li <benxbli@yahoo.com>
4
5
// PR c++/11030: Template substitution of friend class that is
6
// a specialization.
7
8
template <int S>
9
struct A
10
{
11
void func(void);
12
};
13
14
template <class T>
15
class C
16
{
17
static void private_func(void) {}
18
public:
19
friend class A<512>;
20
};
21
22
template <int S>
23
void A<S>::func(void)
24
{
25
C<void>::private_func();
26
}
27
28
template class A<512>;