[LLVMbugs] [Bug 16068] New: Fails to diagnose ambiguous base class

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 19 05:42:13 PDT 2013


            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: unassignedclangbugs at nondot.org
          Reporter: zilla at kayari.org
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130519/48139796/attachment.html>

More information about the llvm-bugs mailing list