<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 --- - [debug info] Template parameter packs - incorrect arguments in appear in gdb" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24269&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=-G42rbnsVCMxgK7NpuJ5ZTZkUqFA9-YjW4UEixUtKGU&s=sGIFXfRaeHUkluDQMgr-gR0vIxQY63Ppk1MuK-vJ444&e=">24269</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[debug info] Template parameter packs - incorrect arguments in appear in gdb
          </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>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>hfinkel@anl.gov
          </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>$ cat /tmp/d2.cpp 
#include <iostream>
using namespace std;

template <typename ... T>
void foo(T ... t) {
  cout << "here\n";
}

int main() {
  foo(3, 3, 5, 6);
}

$ clang++ -std=c++14 -g -o ~/tmp/d /tmp/d2.cpp

$ gdb ~/tmp/d
GNU gdb (GDB) 7.7
...
Reading symbols from ~/tmp/d...done.
(gdb) b main
Breakpoint 1 at 0x4007a3: file /tmp/d2.cpp, line 10.
(gdb) s
The program is not being run.
(gdb) r
Starting program: ~/tmp/d 

Breakpoint 1, main () at /tmp/d2.cpp:10
10      foo(3, 3, 5, 6);
(gdb) s
foo<int, int, int, int> (t=6, t=6, t=6, t=6) at /tmp/d2.cpp:6
6      cout << "here\n";
(gdb) p t
$1 = 6
(gdb) quit

The '(t=6, t=6, t=6, t=6)' bit is clearly wrong. This obviously might be a gdb
bug; I don't know how to tell. FWIW, MS Visual Studio produces
pseudo-parameters t_0, t_1, etc. Perhaps that would be better?</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>