http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56815
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-04-02 17:04:31 UTC --- Use -pedantic-errors if you want to have rejected invalid standard C++ code. void* arithmetic is a GCC extension.