<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 --- - problem with parameter-declaration-clause/pack expansion of abstract declarator ambiguity resolution"
   href="http://llvm.org/bugs/show_bug.cgi?id=15311">15311</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>problem with parameter-declaration-clause/pack expansion of abstract declarator ambiguity resolution
          </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>Windows NT
          </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++11
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>vanyacpp@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>Clang can not parse this code:

template <typename ...Args>
void foo(void (*...)(Args))
{}

with error message:

1.cpp:2:17: error: expected ')'
void foo(void (*...)(Args))
                ^
1.cpp:2:15: note: to match this '('
void foo(void (*...)(Args))
              ^
1.cpp:2:6: error: declaration type contains unexpanded parameter pack 'Args'
void foo(void (*...)(Args))
     ^               ~~~~
2 errors generated.

When it see ... it haven't seen any unexpanded template parameter packs, so it
doesn't parse ... as part of abstract declarator leaving it to
parameter-declaration-clause.

Funny thing is that november CTP of MSVC 2012 is the only compiler that can
parse this code correctly.</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>