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

            Bug ID: 17549
           Summary: Error message on ambigous calls should list argument
                    types
           Product: clang
           Version: 3.0
          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

// Error message is not as helpful as it could be for the following snippet:

static const int x = 0;

struct This {
  This(int i) { }
};

struct That {
  That(int i) { }
};

void f(const This& t) {
}

void f(const That& t) {
}

void g() {
  // This is an ambiguous call, but the error message does not
  // print the type of x, which can be very helpful in more complex cases.
  f(x);
}

-- 
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