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++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend58.C
blob
cadfb3e1f430307f56090709db1c6ba35de90c0f
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 : protected freeList<bar, baz>
13
{
14
template<typename T>
15
friend
16
void freeList<T, baz>::foo(); // { dg-error "friend" }
17
};
18
19
baz b;