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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload7.C
blob
361150569c9183d5ef7c024e3fc08d55f3edc299
1
// Bug: g++ thinks there is a default conversion from A& to B*.
2
// There isn't.
3
// Build don't link:
4
5
struct A {
6
operator A* ();
7
};
8
9
struct B: public A { };
10
11
void foo (B* bp);
12
13
void bar (A& a) {
14
foo (a); // ERROR -
15
}