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
/
sfinae19.C
blob
52cc6add1f23179f3903fea092423dd758b07e7c
1
// PR c++/48737
2
// { dg-do compile { target c++11 } }
3
4
template<class T>
5
T&& create();
6
7
template<class T, class... Args>
8
decltype(T{create<Args>()...}, char()) f(int);
9
10
template<class, class...>
11
char (&f(...))[2];
12
13
static_assert(sizeof(f<int[1], int, int>(0)) != 1, "Error");