Commit 2c4eb794 by Jason Merrill

up

From-SVN: r23388
parent aa45967f
// conversion ops should be treated as coming from the most derived class // conversion ops should be treated as coming from the most derived class
// for overload resolution. See [over.match.funcs]. // for overload resolution. See [over.match.funcs].
// Build don't link: // Build don't link:
// excess errors test - XFAIL *-*-*
class X { class X {
public: public:
inline operator bool() const { return true; } operator bool() const;
}; };
class Y : public X { class Y : public X {
private: private:
inline operator void*() const { return 0; } operator void*() const;
}; };
int f(Y const& y) { int f(Y const& y) {
return bool(y); return bool(y);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment