https://llvm.org/bugs/show_bug.cgi?id=30518
Bug ID: 30518
Summary: Parameter pack expansion doesn't work properly when
used to define argument list
Product: clang
Version: unspecified
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++14
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
I refer to this question on SO:
http://stackoverflow.com/questions/39690166/can-i-expand-a-parameters-pack-and-define-an-arguments-list-with-it
In particular, the following code compiles, but it shouldn't because of
[temp.variadic]:
template<typename... T>
struct S {
template<T... I>
void m() {}
};
int main() {
S<int, char> s;
s.m<0>();
S.m<>();
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs