Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
move-return4.C
blob: 3fc58089319355f394b68423018c251372fbc82b [
file
] [
log
] [
blame
]
// PR c++/87530
// { dg-do compile { target c++11 } }
struct
Base
{
};
template
<
typename
T
>
struct
A
:
Base
{
A
();
A
(
Base
&&);
};
A
<int>
foo
()
{
A
<double>
v
;
return
v
;
// { dg-error "cannot bind rvalue reference" "" { target c++17_down } }
}