PATCH: BPs & cleanups for ARRAY_SIZE

Alexandre Oliva
Wed Aug 23 13:25:00 GMT 2000

On Aug 23, 2000, Greg McGary <> wrote:

>          -- An  array  subscript is out of range, even if an object
>             is apparently accessible with the given  subscript  (as
>             in  the lvalue expression a[1][7] given the declaration
>             int a[4][5]) (6.5.6).

Ok, this applies to array subscripts, but does it apply to pointers
derived from the arrays too?  In particular, does it apply to char*s?

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

More information about the Gcc-patches mailing list