On 4 June 2011 16:49, Jason Merrill wrote: > On 06/04/2011 08:45 AM, Jonathan Wakely wrote: >> >> + if (CLASSTYPE_PURE_VIRTUALS (type)) >> + warning(OPT_Wdelete_non_virtual_dtor, >> + "deleting object of abstract class type %qT" >> + " which has non-virtual destructor" >> + " will cause undefined behaviour", type); >> + else >> + warning(OPT_Wdelete_non_virtual_dtor, >> + "deleting object of polymorphic class type >> %qT" >> + " which has non-virtual destructor" >> + " may cause undefined behaviour", type); > > Space before the (. And let's use "might" instead of "may". OK with those > changes.
Fixed and committed, thanks.