https://llvm.org/bugs/show_bug.cgi?id=23028
Bug ID: 23028
Summary: No diagnostic for function parameter pack with default
argument
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
Ubuntu clang version 3.7.0-svn229234-1~exp1 and in earlier versions.
The following (ill formed) code is accepted by clang: http://goo.gl/jKa8Q7
template <typename... Ts>
void f(Ts... = 0) {}
int main() {
f(42);
}
8.3.6/3: A default argument shall not be specified for a parameter pack.
>From http://stackoverflow.com/q/29098835/1639256
--
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