public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67969] New: [concepts] bug with overloaded function when using constraints
@ 2015-10-14 22:12 ryan.burn at gmail dot com
  2015-10-14 22:53 ` [Bug c++/67969] " ryan.burn at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ryan.burn at gmail dot com @ 2015-10-14 22:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67969
           Summary: [concepts] bug with overloaded function when using
                    constraints
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ryan.burn at gmail dot com
  Target Milestone: ---

Created attachment 36514
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36514&action=edit
code

The attached code contains these two functions

template <class X> requires !Q<X>() auto func(vtype<X>, X) {}      

template <class X> requires Q<X>() auto func(vtype<X>, X) {} 

I get an ambiguous overload when trying to call it, but one should be disabled.


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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-14 22:12 [Bug c++/67969] New: [concepts] bug with overloaded function when using constraints ryan.burn at gmail dot com
2015-10-14 22:53 ` [Bug c++/67969] " ryan.burn at gmail dot com
2022-01-31 13:07 ` kirshamir at gmail dot com
2022-01-31 13: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).