Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
fntmpdefarg11.C
blob: 86c8ea93f4d68cc585bbc48045f4ddce0489576b [
file
] [
log
] [
blame
]
// PR c++/87480
// { dg-do compile { target c++11 } }
template
<
typename
T
>
T
&&
declval
();
template
<
typename
T
,
typename
=
decltype
(
declval
<
T
>().
d
)>
void
f
(
T
)
{
}
struct
A
{
double
d
;
};
template
<typename>
void
j
(
A
&
a
)
{
f
(
a
);
}