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
/
cpp0x
/
vt-55542.C
blob
72d58b95801d05375df5f5c43b66398b91bc2d89
1
// PR c++/55542
2
// { dg-do compile { target c++11 } }
3
4
template <typename ... P>
5
struct B
6
{
7
template <typename O>
8
B (O *o, void (O::*f) (P ... p)) {}
9
};
10
class C
11
{
12
void foo (void *, int);
13
template <typename ... A>
14
void bar (A ... a);
15
B <void *> c;
16
B <void *, int> d;
17
C (int) : c (this, &C::bar), d (this, &C::foo) {}
18
};
19
template <typename ... A>
20
void C::bar (A ...)
21
{
22
}