[Bug c++/99730] New: gcc cannot choose the best overload resolution with constrained function
hewillk at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 23 15:32:03 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99730
Bug ID: 99730
Summary: gcc cannot choose the best overload resolution with
constrained function
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hewillk at gmail dot com
Target Milestone: ---
auto f(auto&&...) {}
auto f(auto...) requires true {}
int main() {
f();
}
gcc reject with:
<source>:5:5: error: call of overloaded 'f()' is ambiguous
5 | f();
| ^
https://godbolt.org/z/e8jas5frc
More information about the Gcc-bugs
mailing list