From-SVN: r23388
This commit is contained in:
Jason Merrill 1998-10-27 20:57:15 -05:00
parent aa45967f76
commit 2c4eb7946e

View File

@ -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);
}