Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
ref7.C
blob: 99347cb1c27a758740bdbf5eda470fcaf77bea6a [
file
] [
log
] [
blame
]
// PR c++/91849
struct
A
{
operator
float
();
};
void
g
()
{
float
f
=
1.f
;
int
&
r
=
f
;
// { dg-error "float" }
int
&
r2
=
A
();
// { dg-error "float" }
}
void
g2
()
{
int
&
r
=
1.f
;
// { dg-error "float" }
}