[LLVMbugs] [Bug 21151] New: bad note on deleted candidate
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Oct 3 14:28:37 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21151
Bug ID: 21151
Summary: bad note on deleted candidate
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: nlewycky at google.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Testcase:
nlewycky at ducttape:~$ cat v.cc
void f(int);
void f(float) = delete;
void test() {
f();
}
nlewycky at ducttape:~$ llvm/Debug+Asserts/bin/clang++ v.cc -std=c++11
v.cc:5:3: error: no matching function for call to 'f'
f();
^
v.cc:2:6: note: candidate function not viable: requires 1 argument, but 0 were
provided
void f(float) = delete;
^
v.cc:1:6: note: candidate function not viable: requires 1 argument, but 0 were
provided
void f(int);
^
1 error generated.
We should say that the function is deleted instead of having the wrong number
of arguments.
--
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/20141003/28a02d29/attachment.html>
More information about the llvm-bugs
mailing list