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

             Bug #: 14372
           Summary: Partial ordering of variadic function template
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


According to the last example in temp.func.order (14.5.6.2), the call to f
below should be ambiguous, but clang compiles the code and the calls #2:


template <class T, class... U> void f(T, U...);    // #1
template <class T            > void f(T);          // #2

void h(int i)
{
    f(&i);  // should be ambiguous, but calls #2
}

Test with trunk revision 168277.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to