[llvm-bugs] [Bug 33760] New: LLDB's SBType's template functions don't work for template parameter packs

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 12 06:21:01 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33760

            Bug ID: 33760
           Summary: LLDB's SBType's template functions don't work for
                    template parameter packs
           Product: new-bugs
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: mail at kkaefer.com
                CC: llvm-bugs at lists.llvm.org

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170712/6db55a8e/attachment.html>


More information about the llvm-bugs mailing list