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