[Bug c++/72842] New: non-type template-parameter of type void
barry.revzin at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Aug 8 17:55:00 GMT 2016
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.
More information about the Gcc-bugs
mailing list