2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / lookup3.C
blobecef5342024c3ce37528311e975efe1d02cf1867
1 // { dg-do assemble  }
2 // [class.ambig]: A single function, object, type, or enumerator may be
3 // reached through more than one path through the DAG of base classes.  This
4 // is not an ambiguity.
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&);                  // { dg-bogus "" } ambiguous lookup