public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102137] New: class template argument deduction with template template parameter allows explicit deduction guide
@ 2021-08-30 23:40 johelegp at gmail dot com
  2021-08-31 13:57 ` [Bug c++/102137] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: johelegp at gmail dot com @ 2021-08-30 23:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102137
           Summary: class template argument deduction with template
                    template parameter allows explicit deduction guide
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
                CC: johelegp at gmail dot com
  Target Milestone: ---

See https://godbolt.org/z/qc4e95TEK.
```C++
template<class T> struct B { B(int){} };  explicit B(int) -> B<int>;
template<template<class> class T> void f() { [[maybe_unused]] T _ = 0; }
void g() { f<B>(); }
```

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

end of thread, other threads:[~2022-03-09 13:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30 23:40 [Bug c++/102137] New: class template argument deduction with template template parameter allows explicit deduction guide johelegp at gmail dot com
2021-08-31 13:57 ` [Bug c++/102137] " redi at gcc dot gnu.org
2021-08-31 15:02 ` ppalka at gcc dot gnu.org
2022-03-09 13:44 ` cvs-commit at gcc dot gnu.org
2022-03-09 13:53 ` 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).