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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to