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:30:50 +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 #4 from Barry Revzin <barry.revzin at gmail dot com> ---
I'll just email. Instantiating foo<void> creates a function template with a
non-type template parameter of type void. That's not an allowed type of a
non-type template parameter, so I think it should be ill-formed.
This would arise when doing something like "enable_if_t<something>..." for
SFINAE purposes, I just wanted a more minimal example.
If that's not the case, what allows a void non-type template parameter to
be used for parameter packs?
On Mon, Aug 8, 2016, 2:25 PM daniel.kruegler at googlemail dot com <
gcc-bugzilla@gcc.gnu.org> wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72842
>
> --- Comment #3 from Daniel Krügler <daniel.kruegler at googlemail dot com>
> ---
> Since this is not a newsgroup, let me ask differently: Can you please
> elaborate
> what you consider as a concrete compiler defect, violating the existing
> standard? I fail to see the point.
>
> --
> You are receiving this mail because:
> You reported the bug.