up
From-SVN: r23388
This commit is contained in:
parent
aa45967f76
commit
2c4eb7946e
@ -1,19 +1,17 @@
|
||||
// conversion ops should be treated as coming from the most derived class
|
||||
// for overload resolution. See [over.match.funcs].
|
||||
// Build don't link:
|
||||
// excess errors test - XFAIL *-*-*
|
||||
|
||||
class X {
|
||||
public:
|
||||
inline operator bool() const { return true; }
|
||||
operator bool() const;
|
||||
};
|
||||
|
||||
class Y : public X {
|
||||
private:
|
||||
inline operator void*() const { return 0; }
|
||||
operator void*() const;
|
||||
};
|
||||
|
||||
|
||||
int f(Y const& y) {
|
||||
return bool(y);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user