<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Member function pointer related error message could be improved"
href="http://llvm.org/bugs/show_bug.cgi?id=17563">17563</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Member function pointer related error message could be improved
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>cib123@googlemail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=11366" name="attach_11366" title="Test case for error message">attachment 11366</a> <a href="attachment.cgi?id=11366&action=edit" title="Test case for error message">[details]</a></span>
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?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>