Skip to content
Snippets Groups Projects
Commit 1c556b22 authored by Jason Merrill's avatar Jason Merrill
Browse files

re PR c++/3242 (Forwarding using 'using' of base members broken?)

        PR c++/3242
        * class.c (add_method): Do compare 'this' quals when trying to match a
        used function.  Don't defer to another used function.

From-SVN: r48982
parent e6dc5a9a
No related branches found
No related tags found
No related merge requests found
// Test that overloading on 'this' quals works with class using-declarations.
// { dg-do link }
struct A {
void f() const;
void f() {}
void g() const {}
void g();
void h() const;
void h();
void i() const;
void i() {}
};
struct B: private A {
using A::f;
using A::g;
void h () const {}
using A::h;
void i () const {}
using A::i;
};
int main()
{
B b1;
const B b2 = B();
b1.f ();
b2.g ();
b2.h ();
b1.i ();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment