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
/
sfinae1.C
blob
0e015d9026f799d1b8a63cb1cd70664bd138ba56
1
// { dg-do compile { target c++11 } }
2
3
template< typename T_VECTOR >
4
void f(const T_VECTOR &a, decltype(a[0]) t = 0);
5
template< typename T >
6
void f(const T &a, decltype(a*1) t = 0);
7
8
int main() {
9
int c;
10
f(c);
11
}