public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100652] New: Uexpanded parameter pack in partial specialization of variable template not rejected
@ 2021-05-18 14:53 ppalka at gcc dot gnu.org
  2021-05-18 15:17 ` [Bug c++/100652] Unexpanded " mpolacek at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-05-18 14:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100652

            Bug ID: 100652
           Summary: Uexpanded parameter pack in partial specialization of
                    variable template not rejected
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

template <class... Ts> struct A { };
template <class T> inline constexpr bool is_a = false;
template <class... Ts> inline constexpr bool is_a<A<Ts>> = true;

GCC silently accepts the above testcase and doesn't diagnose the unexpanded
parameter pack Ts inside the partial specialization of 'is_a'.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-09 14:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 14:53 [Bug c++/100652] New: Uexpanded parameter pack in partial specialization of variable template not rejected ppalka at gcc dot gnu.org
2021-05-18 15:17 ` [Bug c++/100652] Unexpanded " mpolacek at gcc dot gnu.org
2021-11-05 21:06 ` ppalka at gcc dot gnu.org
2021-11-09 14:11 ` cvs-commit at gcc dot gnu.org
2021-11-09 14:11 ` ppalka at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).