[LLVMbugs] [Bug 15799] New: Variadic pack at the beginning of function parameters not seen as a non-deduced context

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Apr 20 07:17:29 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15799

            Bug ID: 15799
           Summary: Variadic pack at the beginning of function parameters
                    not seen as a non-deduced context
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hivemaster at hotmail.de
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following simple snippet fails to compile:

template<typename T> struct any{ template<typename U> any(U){} };

template<typename... Ts, typename T>
T back(any<Ts>..., T);

int main(){
    using _ = decltype(back<int>(true, 42));
}

With:

main.cpp:7:24: error: no matching function for call to 'back'
    using _ = decltype(back<int>(true, 42));
                       ^~~~~~~~~
main.cpp:4:3: note: candidate template ignored: couldn't infer template
argument 'T'
T back(any<Ts>..., T);

May be related to http://llvm.org/bugs/show_bug.cgi?id=9020

-- 
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/20130420/18318770/attachment.html>


More information about the llvm-bugs mailing list