[LLVMbugs] [Bug 12119] New: Fails to deduce an initializer list argument type when some elemements can be deduced
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Feb 28 13:58:40 PST 2012
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: unassignedclangbugs at nondot.org
ReportedBy: schaub.johannes at googlemail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list