-Werror=overloaded-virtual and initialization of fields in constructor