<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 --- - variadic-template-function taking variadic-function-pointer as argument fails if argument's type is typedef'd via using" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24032&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=L7Z6qkqC5205kViOU7YVyiA8ysJtgcaZjU9QmJUzcyw&s=EOEIViBGdMVpcXmGkTxvqfghGL9iFGwYJ4tctOmof14&e=">24032</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>variadic-template-function taking variadic-function-pointer as argument fails if argument's type is typedef'd via using
          </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>URL</th>
          <td>http://stackoverflow.com/questions/31225888/pre-typedefing-a-variadic-function-pointer-argument
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

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

        <tr>
          <th>Keywords</th>
          <td>compile-fail
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </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>xaxazak@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>Created <span class=""><a href="attachment.cgi?id=14552" name="attach_14552" title="source that should compile, but doesn't">attachment 14552</a> <a href="attachment.cgi?id=14552&action=edit" title="source that should compile, but doesn't">[details]</a></span>
source that should compile, but doesn't

Create a variadic-template-function that takes a variadic-function-pointer as
its argument. This works as intended, and correctly accepts candidate functions
as arguments.

Create a typedef (via "using") for a variadic-function-pointer. This works, and
variables of this type can be correctly assigned to candidate functions.

Try to replace the variadic-template-function's argument type with this new
typedef. This should compile (at least, GCC accepts it), but doesn't.

This is somehow related to template parameter-deduction, even though explicitly
specifying the parameters still causes a "deduction" failure.

There's some more discussion on the stackoverflow topic link:
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com_questions_31225888_pre-2Dtypedefing-2Da-2Dvariadic-2Dfunction-2Dpointer-2Dargument&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=L7Z6qkqC5205kViOU7YVyiA8ysJtgcaZjU9QmJUzcyw&s=qES_EjL6S07GPdcshoCCx2UV3nb33l5kfgAf2OSRsUU&e=">http://stackoverflow.com/questions/31225888/pre-typedefing-a-variadic-function-pointer-argument</a></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>