Sign in
gnu
/
gcc
/
418f81eefb6540582e4818225404d4a647ad67eb
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload1.C
blob: e29a7c16b916fe4ff45850286297233968cc9dc4 [
file
] [
log
] [
blame
]
// Bug: g++ thinks there is a conversion from void * to B *.
// Build don't link:
struct
A
{
operator
void
*
();
};
struct
B
:
public
A
{
};
void
bar
(
A
&
a
)
{
B
*
bp
=
(
B
*)
a
;
// ERROR -
}