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
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic94.C
blob
f5f3228f81707b6b2589b7ec16b7dd7e652756e2
1
// PR c++/40595
2
// { dg-do compile { target c++11 } }
3
4
template<int N>
5
struct S
6
{
7
typedef int type;
8
};
9
10
template<typename T>
11
struct Get
12
{
13
static T get();
14
};
15
16
template<typename F>
17
struct B
18
{
19
template<typename ... Args>
20
typename S<sizeof( Get<F>::get() (Get<Args>::get() ...) )>::type
21
f(Args&& ... a);
22
};
23
24
struct X
25
{
26
bool operator()(int) const;
27
};
28
29
int main()
30
{
31
B<X> b;
32
b.f(1);
33
}