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