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
/
variadic109.C
blob
3ecfb7398881ab26dfc0e3530bdf38b09a2d4b87
1
// PR c++/48292
2
// { dg-do compile { target c++11 } }
3
4
template <typename... Args> int g(Args...);
5
6
template <int N = 0>
7
struct A
8
{
9
template <typename... Args>
10
static auto f(Args... args) -> decltype(g(args...));
11
};
12
13
int main()
14
{
15
A<>::f();
16
return 0;
17
}