This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/72842] non-type template-parameter of type void
- From: "barry.revzin at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 08 Aug 2016 19:07:12 +0000
- Subject: [Bug c++/72842] non-type template-parameter of type void
- Auto-submitted: auto-generated
- References: <bug-72842-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72842
--- Comment #2 from Barry Revzin <barry.revzin at gmail dot com> ---
This non-dependent version:
template <void...> void bar() { }
fails to compile, even if we never call bar(), even if we wanted to call it
with an empty pack.
foo<void> in the original example is this same thing with an extra template
type parameter. Why the difference?