1 // { dg-do run }
2 
3 // Copyright (C) 2002 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 15 Sep 2002 <nathan@codesourcery.com>
5 
6 // PR 7919. Methods found via using decls didn't have their this
7 // pointers converted to the final base type.
8 
9 struct Base {
10   int m;
11   protected:
ReturnBase12   void *Return () { return this; }
13 };
14 
15 struct Derived : Base {
16   using Base::Return;
~DerivedDerived17   virtual ~Derived () {}
18 };
19 
main()20 int main ()
21 {
22   Derived d;
23 
24   return static_cast <Base *> (&d) != d.Return ();
25 }
26