Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload6.C
blob: 765c20d386bd20f9cfda853a44c7a856ee89210e [
file
] [
log
] [
blame
]
// { dg-do assemble }
// Bug: g++ thinks there is a default conversion from void* to B*.
// There isn't.
struct
A
{
operator
void
*
();
};
struct
B
{
};
void
foo
(
B
*
bp
);
void
bar
(
A
&
a
)
{
foo
(
a
);
// { dg-error "" }
}