Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae40.C
blob: 18e5fecb268163cf5e1551fa103734e90db8434c [
file
] [
log
] [
blame
]
// PR c++/54541
// { dg-do compile { target c++11 } }
template
<
typename
T
>
T
&&
declval
();
struct
X
;
X f
(
int
);
template
<
class
T
>
void
g
(
decltype
((
void
)
f
(
declval
<
T
>()))
*)
{}
template
<
class
T
>
void
g
(...)
{}
int
main
()
{
g
<int>
(
0
);
}