This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Further C front end tests


Andreas Schwab wrote:-

> See 6.5.3.1p3 and footnote 83:
> 
>    Similarly, if the operand is the result of a [] operator, neither the &
>    operator nor the unary * that is implied by the [] is evaluated and the
>    result is as if the & operator were removed and the [] operator were
>    changed to a + operator.
> 
>    83) Thus, &*E is equivalent to E (even if E is a null pointer), and
>        &(E1[E2]) to ((E1)+(E2)).
> 
> So it all boils down to "arithmetic on void *", but _not_ "dereferencing
> void *".

This seems to be referring to evaluation.  Constraints on used operators
still apply.

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]