http://llvm.org/bugs/show_bug.cgi?id=19459
Bug ID: 19459
Summary: Bad diagnostic when initializer list is used in
variadic constructor
Product: clang
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
struct Foo {
template<typename...T> Foo(T...x) {}
};
Foo bar{1, 2, 3, {}, 5};
This gives the nonsense diagnostic:
foo.cpp:4:26: Candidate constructor not viable: requires 3 arguments, but 5
were provided
instead of a more accurate diagnostic that the nested initializer list cannot
be used due to a lack of type context.
--
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