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