[Bug c++/105111] Ambiguous constructor overload with requires constraint

2022-03-30 Thread andrei.popa105 at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105111 --- Comment #3 from Andrei-Edward Popa --- Thanks for that reference to the standard, it is clear to me why gcc reject this call as ambiguous.

[Bug c++/105111] Ambiguous constructor overload with requires constraint

2022-03-30 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105111 --- Comment #2 from Patrick Palka --- FWIW one workaround could be to consistently use 'T' or 'const T&' as the first function parameter for both functions. Another workaround could be to constrain the second overload with '(!std::is_signed::va

[Bug c++/105111] Ambiguous constructor overload with requires constraint

2022-03-30 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105111 Patrick Palka changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME