class.c (add_method): Do compare 'this' quals when trying to match a used function.
authorJason Merrill <jason@gcc.gnu.org>
Tue, 18 Dec 2001 15:25:43 +0000 (10:25 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 18 Dec 2001 15:25:43 +0000 (10:25 -0500)
        * 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

gcc/testsuite/g++.dg/lookup/using.C

index 89e6e1c..30e22c0 100644 (file)
@@ -17,7 +17,7 @@ struct Derived : Base {
 int main()
 {
   Derived d;
-  X x = d.f();                  // { dg-bogus "Y" "" { xfail *-*-* } }
+  X x = d.f();                  // { dg-bogus "Y" "" }
 }