public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98844] New: Deduction guides don't inhibit the aggregate deduction candidate
@ 2021-01-27  1:23 johelegp at gmail dot com
  2021-02-12  5:02 ` [Bug c++/98844] " mpolacek at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: johelegp at gmail dot com @ 2021-01-27  1:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98844
           Summary: Deduction guides don't inhibit the aggregate deduction
                    candidate
           Product: gcc
           Version: 11.0
               URL: https://godbolt.org/z/EWs4rd
            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/EWs4rd.
```C++
#include<type_traits>
template<class T>struct A{T t;};
A(double)->A<void*>;
A a{1};
static_assert(std::is_same_v<decltype(a),A<int>>);
```

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

end of thread, other threads:[~2021-02-12  5:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27  1:23 [Bug c++/98844] New: Deduction guides don't inhibit the aggregate deduction candidate johelegp at gmail dot com
2021-02-12  5:02 ` [Bug c++/98844] " mpolacek 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).