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
/
overload1.C
blob
e29a7c16b916fe4ff45850286297233968cc9dc4
1
// Bug: g++ thinks there is a conversion from void * to B *.
2
// Build don't link:
3
4
struct A {
5
operator void* ();
6
};
7
8
struct B: public A { };
9
10
void bar (A& a) {
11
B* bp = (B*)a; // ERROR -
12
}