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

             Bug #: 12119
           Summary: Fails to deduce an initializer list argument type when
                    some elemements can be deduced
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++0x
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


This is valid code, "T" is deduced by "0" to "int":

template<typename T> void f(initializer_list<T>); 
int main() { f({0, {1}}); }

However, clang says "no matching function for call to 'f'".

-- 
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