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
/
memtmpl5.C
blob
c5c3634ff382513035efd28f46886d17529a5c76
1
// PR c++/79508
2
3
struct C
4
{
5
template< void(*F)()> void set_default() { }
6
};
7
8
9
template <class T> void random_positive()
10
{
11
}
12
13
template<class T> void initialize(T& x)
14
{
15
x.template set_default<random_positive<T> >();
16
}
17
18
int main ()
19
{
20
C x;
21
initialize<C>(x);
22
}