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