public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104291] New: gcc accepts template argument involves template parameter(s)
@ 2022-01-30 17:20 hewillk at gmail dot com
  2022-01-30 21:27 ` [Bug c++/104291] [12 Regression] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: hewillk at gmail dot com @ 2022-01-30 17:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104291
           Summary: gcc accepts template argument involves template
                    parameter(s)
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

This should be rejected.

#include<array>

template<auto>
struct S { };

template<auto... x>
struct S<std::array{x...}> { };

S<std::array{1, 2, 3}> x;

https://godbolt.org/z/ecoGPWq3q

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

end of thread, other threads:[~2022-01-31 19:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-30 17:20 [Bug c++/104291] New: gcc accepts template argument involves template parameter(s) hewillk at gmail dot com
2022-01-30 21:27 ` [Bug c++/104291] [12 Regression] " pinskia at gcc dot gnu.org
2022-01-31  8:22 ` rguenth at gcc dot gnu.org
2022-01-31  9:04 ` redi at gcc dot gnu.org
2022-01-31 16:44 ` ppalka at gcc dot gnu.org
2022-01-31 19:15 ` cvs-commit at gcc dot gnu.org
2022-01-31 19:15 ` 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).