https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91407
--- Comment #2 from Aso Renji <asorenji at gmail dot com> --- (In reply to Jonathan Wakely from comment #1) > Is there a reason you need to use -Wnon-virtual-dtor ? QtCreator with -Wall as default compile option. Yes, I can set custom compile options, or use #pragma GCC diagnostic ignored "-Wnon-virtual-dtor". But it's not very convenient.