[Bug c++/103783] Ambiguous overload between constrained static member and unconstrained non-static member

davidfromonline at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Jan 2 16:57:22 GMT 2022


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

--- Comment #3 from David Stone <davidfromonline at gmail dot com> ---
Fedor, it looks like that wording was changed to a non-normative note and
expanded in N4868 to say: "There cannot be a static and a non-static member
function with the same name, parameter-type-list, and trailing requires-clause
([over.load]).". https://timsong-cpp.github.io/cppwp/n4868/class.static.mfct#2.
Later versions of the standard (for C++23) removed the sentence entirely.


More information about the Gcc-bugs mailing list