https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104734
Eugene Shalygin <eugene.shalygin at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eugene.shalygin at gmail dot com --- Comment #6 from Eugene Shalygin <eugene.shalygin at gmail dot com> --- Moreover, if the inherited class is not in the system header, to silence the warning one has to put the diagnostic ignoring pragma before the function in the base class, and not at the point when the mistake is made: https://godbolt.org/z/984qfzzcf