https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72842
Bug ID: 72842 Summary: non-type template-parameter of type void Product: gcc Version: 5.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: barry.revzin at gmail dot com Target Milestone: --- The following compiles on gcc (and clang), across all versions I've tried: template <class T, T...> void foo() { } int main() { foo<void>(); } But void isn't a valid non-type template parameter type.