https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69768
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 37665 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37665&action=edit gcc6-pr69768.patch So, if we are ok that we "regress" for the (10 - 10) and (&e - &e) cases in C++ (in C as before, (10 - 10) doesn't warn, (&e - &e) does), then we can use this patch.