[Bug c++/56815] void pointer arithmetic
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Wed Apr 3 11:36:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56815
--- Comment #11 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-04-03 11:35:55 UTC ---
In that case we can have a pedwarn instead of a permerror in the C++ front-end
and restore some consistency.
Still I find weird that those people in the wild currently must always use p++
and avoid p + 1.
Maybe the compromise I was suggesting, thus change in C++ the pedwarn in the
common code to permerror but still protected with (pedantic ||
warn_pointer_arith) is a decent compromise.
More information about the Gcc-bugs
mailing list