Sign in
gnu
/
gcc
/
609d1c1bf0472f9d9415b0b124603348dbcd9e4e
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload6.C
blob: 3ae964283898dd72c1958486934c560d2d73a3f8 [
file
] [
log
] [
blame
]
// Bug: g++ thinks there is a default conversion from void* to B*.
// There isn't.
// Build don't link:
struct
A
{
operator
void
*
();
};
struct
B
{
};
void
foo
(
B
*
bp
);
void
bar
(
A
&
a
)
{
foo
(
a
);
// ERROR -
}