http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56815
Chung-Ju Wu <jasonwucj at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jasonwucj at gmail dot com --- Comment #4 from Chung-Ju Wu <jasonwucj at gmail dot com> 2013-04-03 05:57:17 UTC --- (In reply to comment #3) > (In reply to comment #2) > > void* arithmetic is a GCC extension. > But why my examples are treated differently? >From gcc manpage, the option '-std=' specifies base standard and accept some GNU extensions that do not contradict it. If you would like to issue warnings/errors demanded by strict ISO C and ISO C++, the -pedantic/-pedantic-errors are required.