Use -Woverloaded-virtual if available.