You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the C++ Standard, static and non-static member functions with the same parameter types cannot be overloaded. The following code should fail to compile.
structX {
voidf() const;
staticvoidf();
};
It fails in clang 17, but succeeds in clang 18. And I find it is related to the declaration order. If swap the declaration order of the two functions