8sa1-gcc/gcc/testsuite/g++.old-deja/g++.jason/lookup3.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

16 lines
372 B
C

// [class.ambig]: A single function, object, type, or enumerator may be
// reached through more than one path through the DAG of base classes. This
// is not an ambiguity.
// Build don't link:
struct A {
typedef long T;
};
struct B : public A { };
struct C : public A { };
struct D : public C , public B {
void f (T&); // gets bogus error - ambiguous lookup
};