public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96604] New: rejects-valid on befriending specialization of conversion function template
@ 2020-08-13 17:13 richard-gccbugzilla at metafoo dot co.uk
  2020-08-13 17:15 ` [Bug c++/96604] " mpolacek at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: richard-gccbugzilla at metafoo dot co.uk @ 2020-08-13 17:13 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96604
           Summary: rejects-valid on befriending specialization of
                    conversion function template
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: richard-gccbugzilla at metafoo dot co.uk
  Target Milestone: ---

Testcase:

struct A { template<typename T> operator T(); };
struct X {};
struct B { friend A::operator X(); };

Per [temp.mem]/5 and /6, I think this is supposed to perform template argument
deduction against the conversion function template and befriend operator T with
T = B.

Clang, EDG, and MSVC accept.

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

end of thread, other threads:[~2022-04-29 21:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-13 17:13 [Bug c++/96604] New: rejects-valid on befriending specialization of conversion function template richard-gccbugzilla at metafoo dot co.uk
2020-08-13 17:15 ` [Bug c++/96604] " mpolacek at gcc dot gnu.org
2022-04-07 21:10 ` jason at gcc dot gnu.org
2022-04-09  1:51 ` cvs-commit at gcc dot gnu.org
2022-04-29 21:25 ` cvs-commit 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).