Further C front end tests

Andreas Schwab schwab@suse.de
Mon Nov 15 21:10:00 GMT 2004


"Joseph S. Myers" <joseph@codesourcery.com> writes:

> 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 

&(E1[E2]) is completely equivalent to ((E1)+(E2)), thus no such warning
should be given.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gcc-patches mailing list