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
/
conversion5.C
blob
303860b4725427dda5325d09ff1db3aabf32d653
1
// Build don't link:
2
struct A { };
3
struct B: public A {
4
A a;
5
operator A () { return a; } // WARNING - never used implicitly
6
};
7
void f (const A&);
8
void g()
9
{
10
B b;
11
(A) b; // gets bogus error - trying both constructor and type conversion operator
12
}