<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - double parameter pack extend"
   href="https://bugs.llvm.org/show_bug.cgi?id=33526">33526</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>double parameter pack extend
          </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>Linux
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>gabriel.degrimouard@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18670" name="attach_18670" title="Contain the error message and the 2 files create by clang">attachment 18670</a> <a href="attachment.cgi?id=18670&action=edit" title="Contain the error message and the 2 files create by clang">[details]</a></span>
Contain the error message and the 2 files create by clang

Hello,

Doing a mistake in my program, I made clang++ segfault. Here is a simple sample
of it.

#include <iostream>

void dump()
{}

template <typename Data, typename Data2, typename... Datas>
void     dump(Data&& data, Data2&& data2, Datas&&... datas)
{
    std::cout << data << ":\t" << data2 << std::endl;
    dump(datas..., datas...);
}

template <typename Data, typename Data2>
void     dump(Data&& data, Data2&& data2)
{
    std::cout << data << ":\t" << data2 << std::endl;
}

int main(int argc, char *argv[])
{
    dump("cornealReflexion", 42.0, "cameraPos", 27.3f, "titi", 42);
    return 0;
}

It segfault when instead of doing: dump(datas...); I do: dump(datas...,
datas...);

The full message and stacktrace is in the attachment files</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>