[LLVMbugs] [Bug 14372] New: Partial ordering of variadic function template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Nov 17 17:42:14 PST 2012


             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: unassignedclangbugs at nondot.org
        ReportedBy: zeratul976 at hotmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

According to the last example in temp.func.order (, 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.

More information about the llvm-bugs mailing list