This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67969] New: [concepts] bug with overloaded function when using constraints
- From: "ryan.burn at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Oct 2015 22:12:21 +0000
- Subject: [Bug c++/67969] New: [concepts] bug with overloaded function when using constraints
- Auto-submitted: auto-generated
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.