This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/72842] non-type template-parameter of type void


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]