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
/
sfinae40.C
blob
18e5fecb268163cf5e1551fa103734e90db8434c
1
// PR c++/54541
2
// { dg-do compile { target c++11 } }
3
4
template <typename T> T&& declval();
5
6
struct X;
7
8
X f(int);
9
10
template <class T>
11
void g(decltype((void)f(declval<T>())) *)
12
{}
13
14
template <class T>
15
void g(...)
16
{}
17
18
int main()
19
{
20
g<int>(0);
21
}