http://llvm.org/bugs/show_bug.cgi?id=16068

            Bug ID: 16068
           Summary: Fails to diagnose ambiguous base class
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

template<class T>
struct A {};

void f(A<long>&) {}
void f(A<char>&) {}

template<class T>
void g(A<T>&) {}

struct B : A<long> {};

struct C : A<char> {};

struct D : B, C {};

int main()
{
  D d;
  // f(d);  // ambiguous
  g(d);
}

The call to f(d) would be ambiguous, so why isn't g(d) ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to