[llvm-bugs] [Bug 30518] New: Parameter pack expansion doesn't work properly when used to define argument list

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Sep 25 12:37:09 PDT 2016


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

            Bug ID: 30518
           Summary: Parameter pack expansion doesn't work properly when
                    used to define argument list
           Product: clang
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: michele.caini at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I refer to this question on SO:
http://stackoverflow.com/questions/39690166/can-i-expand-a-parameters-pack-and-define-an-arguments-list-with-it

In particular, the following code compiles, but it shouldn't because of
[temp.variadic]:

    template<typename... T>
    struct S {
        template<T... I>
        void m() {}
    };

    int main() {
        S<int, char> s;
        s.m<0>();
        S.m<>();
    }

-- 
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/20160925/49835d54/attachment.html>


More information about the llvm-bugs mailing list