https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103783
Fedor Chelnokov <fchelnokov at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fchelnokov at gmail dot com --- Comment #2 from Fedor Chelnokov <fchelnokov at gmail dot com> --- I think this code is invalid per https://timsong-cpp.github.io/cppwp/n4861/class.static.mfct#2: > There shall not be a static and a non-static member function with the same > name and the same parameter types ([over.load]). So GCC just prints confusing diagnostics here, while it shall reject the definition of `struct` with static and not-static `f`.