[LLVMbugs] [Bug 9320] New: clang shouldn't suggest a function that obviously doesn't match its prototype
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 24 16:56:03 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9320
Summary: clang shouldn't suggest a function that obviously
doesn't match its prototype
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
$ cat t.cc
void revoke(const char*x) {}
void Test() {
Invoke();
}
$ clang t.cc
t.cc:4:3: error: use of undeclared identifier 'Invoke'; did you mean 'revoke'?
Invoke();
^~~~~~
revoke
t.cc:1:6: note: 'revoke' declared here
void revoke(const char*x) {}
^
t.cc:4:10: error: too few arguments to function call, expected 1, have 0
Invoke();
~~~~~~ ^
Clang shouldn't have suggested revoke, it is obviously the wrong thing since it
has clearly-incompatible arguments.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list