repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: Fix another crash with invalid new operators [PR117463]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
conversion.C
blob
4c4b96117c5d2a2a0336a432ccfdc7b798879225
1
// { dg-do assemble }
2
// Bug: g++ doesn't find the conversion path from DPtr& to B*.
3
4
class B {};
5
class D : public B {};
6
class DPtr
7
{
8
public:
9
operator D*() const;
10
};
11
12
void foo (B* bp);
13
void bar (DPtr& dp)
14
{
15
foo (dp);
16
}