https://bugs.llvm.org/show_bug.cgi?id=50494
Bug ID: 50494
Summary: Type Traits with an empty parameter pack crashes.
Also skip arity checks
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
See this for example:
https://godbolt.org/z/G8onvPEqM
template<typename ...Ts>
bool foo() {
return __is_pointer(Ts...);
}
void instant() {
foo<int>(); // #1
foo<int, int*>(); // #2
foo<>(); // #3
}
#1 works correctly.
#2 should probably emit a diagnostic, since now there are two parameters to a
Unary type trait.
#3 should probably ALSO emit a diagnostic, since there are NO parameters to a
unary type trait.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs