<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 --- - Strangely worded error message "reference to non-static member function must be called""
   href="http://llvm.org/bugs/show_bug.cgi?id=18995">18995</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Strangely worded error message "reference to non-static member function must be called"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.4
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </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>schnetter@gmail.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>I received the following error message for C++ code:
{{{
      reference to non-static member function must be called
            static_cast<derived const *>(this)->eigenvalues<direction>(
}}}
The caret points to the "e" of "eigenvalues".

Although I am familiar with C++, I do not understand the wording of this error
message. I think the wording can be improved.

The immediate meaning seems to be that there is a non-static member function,
and that one must call it, implying that I am trying to do something else with
it. That is wrong; I am actually trying to call it.

I assume that this message wants to say "This looks like a function call for a
non-static member function, but this is not actually a non-static member
function." Additionally, it could tell me what "eigenvalues<direction>"
actually is.

In this case, the issue is that "eigenvalues" exists in both this class and its
superclass, and the C-style cast to the superclass is not accepted by Clang.
(Other compilers accepted it.)

Could you improve the wording of the error message?</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>