<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 --- - Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack"
   href="http://llvm.org/bugs/show_bug.cgi?id=21684">21684</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.5
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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++14
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>ed@catmur.co.uk
          </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>void f() { [](auto...){}(); }

prog.cc:1:12: error: no matching function for call to object of type '(lambda
at prog.cc:1:12)'
void f() { [](auto...){}(); }
          ^~~~~~~~~~~~~
prog.cc:1:12: note: candidate function template not viable: requires at least 1
argument, but 0 were provided
1 error generated.

According to [dcl.fct]/14 the ellipsis should be parsed as part of the
abstract-declarator; however gcc parses it as part of the
parameter-declaration-clause.

gcc is similarly incorrect; according to
<a href="http://www.reddit.com/r/cpp/comments/2nkcvi/generic_lambda_inconsistency/">http://www.reddit.com/r/cpp/comments/2nkcvi/generic_lambda_inconsistency/</a> MSVC
(latest CTP) is correct.</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>