FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / lookup3.C
blob7be731ef0f544b5b0dd3a431900112f6b03785de
1 // [class.ambig]: A single function, object, type, or enumerator may be
2 // reached through more than one path through the DAG of base classes.  This
3 // is not an ambiguity.
4 // Build don't link:
6 struct A  {
7   typedef long T;
8 };
10 struct B : public A { };
11 struct C : public A { };
13 struct D : public C , public B {
14   void f (T&);                  // gets bogus error - ambiguous lookup