https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89067
--- Comment #4 from Antony Lewis <antony at cosmologist dot info> --- I agree it may be technically correct, but it is not helpful (esp. if your base class is an empty hierarchy root class, so all derived classes in the program would give this same error).