svn merge -r102224:107263 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / scoped3.C
blob12ef8c8a578c3e44606c475dc30d5053ba2a1e00
2 // { dg-do compile }
4 // Copyright (C) 2002 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 24 Dec 2002 <nathan@codesourcery.com>
7 // PR 7964. ICE with scoped method call
9 struct A {
10   virtual void ostr() const;
13 class B : public virtual A {};
15 template<typename T>
16 struct C : public B
18   void ostr() const
19   {    B::ostr();  }
23 template struct C<int>;