http://llvm.org/bugs/show_bug.cgi?id=22259
Bug ID: 22259
Summary: Overload resolution not working with initializer_list
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Test case.
#include <string>
#include <iostream>
void Test(const bool arg)
{
std::cout << "Wrong[" << arg << "]" << std::endl;
}
void Test(const std::initializer_list<std::string> arg)
{
std::cout << "Right[" << arg.size() << "]" << std::endl;
}
int main (int /*argc*/, char * const /*argv*/[])
{
Test({"false"});
return 0;
}
This should print:
Right[1]
Instead I get:
Wrong[1]
--
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