<html>
    <head>
      <base href="https://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 --- - Bad diagnostic on missing operator() for object" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23615&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=-7dg672hk_lsjlslHoBdaqAHWC1hb2j46J_wM48USIg&s=pZCnS0h1Rro1UylrcO7hXOM1MKLxO0QavGHh5z-iCPA&e=">23615</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Bad diagnostic on missing operator() for object
          </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>All
          </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>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>gonzalobg88@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In the following minimal example there is an error:

Minimal example:

#include<iostream>
int main() {
  std::cout << std::endl();
  return 0;
}

I found it really hard to tell the error form the generated diagnostic:

error: no matching function for call to 'endl'
      std::cout << std::endl();
                   ^~~~~~~~~
/include/libcxx/ostream:1032:1: note: candidate function template not viable:
requires single argument '__os', but no arguments were provided
endl(basic_ostream<_CharT, _Traits>& __os)
^

I think it would be better if the exact error would be spelled out again:

"object std::endl of type ___ does not have a function call operator
operator()"

before including the note, since in this case the note confused me and pointed
me in the wrong direction.</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>