Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
conversion.C
blob: 4c4b96117c5d2a2a0336a432ccfdc7b798879225 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// Bug: g++ doesn't find the conversion path from DPtr& to B*.
class
B
{};
class
D
:
public
B
{};
class
DPtr
{
public
:
operator
D
*()
const
;
};
void
foo
(
B
*
bp
);
void
bar
(
DPtr
&
dp
)
{
foo
(
dp
);
}