<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 - LLDB's SBType's template functions don't work for template parameter packs"
   href="https://bugs.llvm.org/show_bug.cgi?id=33760">33760</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLDB's SBType's template functions don't work for template parameter packs
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mail@kkaefer.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Consider these two types and their instantiations:

template <class A, class B> class Foo {};
template <class...> class Bar {};

Foo<int, float> foo;
Bar<int, float> bar;

When inspecting types in LLDB, val.GetType().GetNumberOfTemplateArguments()
returns 2 for val `foo`, but it returns 0 for val `bar`. There doesn't seem to
be a way to access the template arguments programmatically through SBType.

Instead of return 0 for variadic templates, it should return the actual number
of template arguments, and GetTemplateArgumentType(I) should return the
corresponding SBType for the particular instantiation.</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>