Commit b1bf2706 by Jason Merrill

class.c (add_method): Do compare 'this' quals when trying to match a used function.

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

From-SVN: r48158
parent 00e4119c
...@@ -17,7 +17,7 @@ struct Derived : Base { ...@@ -17,7 +17,7 @@ struct Derived : Base {
int main() int main()
{ {
Derived d; Derived d;
X x = d.f(); // { dg-bogus "Y" "" { xfail *-*-* } } X x = d.f(); // { dg-bogus "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