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++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic95.C
blob
e383938e991a16b758d85555e789c72aa103d4f6
1
// PR c++/39863
2
// { dg-do compile { target c++11 } }
3
4
template <typename... T>
5
struct A {};
6
7
template <typename T, typename U>
8
struct S {};
9
10
template <typename... T, typename... U>
11
A< S<T, U>... > f(U... u)
12
{ return A< S<T, U>... >(); }
13
14
int main()
15
{
16
f<int>(0.0);
17
}