Commit f6a91eb0 by Gabriel Dos Reis

New test from PR #3242

From-SVN: r44808
parent 598f25be
// { dg-do compile }
struct X { };
struct Y { };
struct Z { };
struct Base {
X f() { return X(); }
Y f() const { return Y(); }
};
struct Derived : Base {
using Base::f;
Z f(int) { return Z(); }
};
int main()
{
Derived d;
X x = d.f();
}
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