Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
);
}