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: [C++ PATCH] Fix PR 11679: Varray out-of-bounds ICE in--enable-checking mode


Hi,

Raja R Harinath <harinath@cs.umn.edu> writes:

> This is an improved version of the patches in
>
>   http://gcc.gnu.org/ml/gcc-patches/2003-07/msg02566.html
>   http://gcc.gnu.org/ml/gcc-patches/2003-07/msg02568.html
>
> It appears that VARRAYs don't support indexing one-past-the-end,
> which is reasonable, except when you just want a pointer past the
> end.  The fix is slightly unclean since accessing index '0' of an
> empty VARRAY is also an error.

I forgot to mention: Just in case it is necessary, I do have an
copyright assignment on file for GCC.

- Hari


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