Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
overload3.C
blob: 0eecabdecc757adb65bfdb0bb55a774dd6e8db50 [
file
] [
log
] [
blame
]
// PR c++/59823
// { dg-do compile { target c++11 } }
struct
X
{
};
void
f
(
X
&&);
struct
wrap
{
operator
const
X
&()
const
;
};
int
main
()
{
wrap w
;
f
(
w
);
// { dg-error "" }
}