https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109740
--- Comment #5 from Alexander Goomenuk <emerg.reanimator at gmail dot com> --- Created attachment 56495 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56495&action=edit Overloaded virtual testcase Another relevant issue with gcc (GCC) 13.2.1 20231011 (Red Hat 13.2.1-4) and -Woverloaded-virtual. Overloading method f() in Derived class affects the warning that is caused by assignment operator! Woverloaded-virtual-test.cpp:6:28: warning: ‘virtual const Parent& Parent::operator=(int&)’ was hidden [-Woverloaded-virtual=] 6 | virtual const Parent & operator=(int &x) | ^~~~~~~~ Woverloaded-virtual-test.cpp:15:8: note: by ‘constexpr Derived& Derived::operator=(const Derived&)’ 15 | struct Derived : public Parent | ^~~~~~~