fix issue 10688 - Misleading error message when attempting a "private
override"