public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102449] New: template parameter with default argument is used without being verified during explicit specialization
@ 2021-09-22 12:15 nickhuang99 at hotmail dot com
  2021-12-16  3:50 ` [Bug c++/102449] " pinskia at gcc dot gnu.org
  2022-01-28 15:51 ` ppalka at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: nickhuang99 at hotmail dot com @ 2021-09-22 12:15 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102449
           Summary: template parameter with default argument is used
                    without being verified during explicit specialization
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nickhuang99 at hotmail dot com
  Target Milestone: ---

The following snippet code should be rejected because "First" should be checked
with its default argument which is "char"

template<class T,class First=char>
void foo(First,T){}
template<>
void foo<double>(int,double){}

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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22 12:15 [Bug c++/102449] New: template parameter with default argument is used without being verified during explicit specialization nickhuang99 at hotmail dot com
2021-12-16  3:50 ` [Bug c++/102449] " pinskia at gcc dot gnu.org
2022-01-28 15:51 ` 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).