[LLVMbugs] [Bug 23028] New: No diagnostic for function parameter pack with default argument
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Mar 25 16:57:17 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: oktal3700 at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150325/1e0beeaf/attachment.html>
More information about the llvm-bugs
mailing list