http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56879
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #29827|application/octet-stream |text/plain mime type| | --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-04-08 17:15:59 UTC --- Comment on attachment 29827 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29827 test source code and compiler output The solution is simple: don't use -Weffc++, it's deeply flawed. Using it with -Werror is just ridiculous. It's much better to use -Wdelete-non-virtual-dtor than -Weffc++ There are lots of known issues with -Weffc++ and noone has been motivated to fix them, see e.g. PR 22395 comment 5 and PR 16166 comment 3 for some discussion related to this warning.