[LLVMbugs] [Bug 18852] New: Spelling correction to non-static member functions with qualification
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Feb 15 13:23:10 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18852
Bug ID: 18852
Summary: Spelling correction to non-static member functions
with qualification
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: dblaikie at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu,
rikka at google.com
Classification: Unclassified
void func() {
struct foo {
void bar() { }
}
bar();
}
produces
error: use of undeclared identifier 'bar'; did you mean 'foo::bar'?
bar();
^~~
foo::bar
note: 'foo::bar' declared here
void bar() {
^
error: call to non-static member function without an object argument
bar();
^~
Arguably this /might/ be right (I did want to call the function, but the
suggestion is clearly wrong and what I needed was foo().bar()). It might be
good to suggest it, but explain that an instance is required (not providing a
fixit hint).
--
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/20140215/d8ac5da2/attachment.html>
More information about the llvm-bugs
mailing list