[LLVMbugs] [Bug 17563] New: Member function pointer related error message could be improved
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Oct 13 05:45:13 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17563
Bug ID: 17563
Summary: Member function pointer related error message could be
improved
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: cib123 at googlemail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11366
--> http://llvm.org/bugs/attachment.cgi?id=11366&action=edit
Test case for error message
If you compile the attached file with "clang++ test.cpp", the error message is
this:
test.cpp:10:35: error: called object type 'void (Foo::*)()' is not a function
or function pointer
This confused me, since to someone who isn't a C++ expert, "member function
pointer" isn't fundamentally different from "function pointer". Could the error
message maybe be changed to check if the called thing is a member function
pointer, and if so, complain more specifically that the member function pointer
is being called directly, without first binding it to an instance?
--
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/20131013/189fa1a7/attachment.html>
More information about the llvm-bugs
mailing list