[LLVMbugs] [Bug 17549] New: Error message on ambigous calls should list argument types

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 11 02:19:47 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: erik at arbat.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131011/2af9998b/attachment.html>


More information about the llvm-bugs mailing list