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
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend59.C
blob
e7c6d58ab1ce5cf5eeedf5434795c3f73c552a5a
1
// PR c++/42328
2
3
template<typename T, typename U>
4
class freeList
5
{
6
public:
7
void foo() {};
8
};
9
10
class bar {};
11
12
class baz;
13
template<typename T> class freeList<T, baz> { void foo(); };
14
15
class baz : protected freeList<bar, baz>
16
{
17
template<typename T>
18
friend
19
void freeList<T, baz>::foo();
20
};
21
22
baz b;