Re: [patch] fix c++/49605: -Wdelete-non-virtual-dtor is not picky enough
This patch is OK, I think I have a slight preference for the warning where it is. Jason
[patch] fix c++/49605: -Wdelete-non-virtual-dtor is not picky enough
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49605 There's a spurious warning because I didn't realise that build_delete is used for destroying automatic variables as well as for delete expression, this fixes it by checking for sfk_deleting_destructor, is that the right thing to do? Tested x86_64-