This is the mail archive of the
mailing list for the GCC project.
Re: Further C front end tests
On Mon, 15 Nov 2004, Zack Weinberg wrote:
> The thing I think we need to continue allowing, as long as the
> arithmetic-on-void* extension remains, is &ptr[N].
Given the mandatory warning "dereferencing 'void *' pointer" for this I'd
not expect many people to be using it rather than ptr+N, but with my
updated patch that gets just the "dereferencing 'void *' pointer" with no
options, plus an extra pedwarn (as now) with -pedantic or -Wpointer-arith.
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
firstname.lastname@example.org (personal mail)
email@example.com (CodeSourcery mail)
firstname.lastname@example.org (Bugzilla assignments and CCs)