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
Initial revision
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload17.C
blob
65738482844bb3f5b49004a76647556953396dc3
1
// Bug: g++ fails to prefer UDC's alone to UDC's plus standard conversions.
2
// Build don't link:
3
4
struct B { };
5
struct D: public B { };
6
struct DP {
7
operator D * () const;
8
operator double () const;
9
};
10
11
void f (B *);
12
void f (D *);
13
void g (double);
14
void g (float);
15
16
void h (DP p)
17
{
18
f (p);
19
g (p);
20
}