This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix PR 11679: Varray out-of-bounds ICE in--enable-checking mode
- From: Raja R Harinath <harinath at cs dot umn dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 20 Aug 2003 12:40:55 -0500
- Subject: Re: [C++ PATCH] Fix PR 11679: Varray out-of-bounds ICE in--enable-checking mode
- Cancel-lock: sha1:/KYZ2deP7qHvxamLxsa9lShhe7A=
- Organization: Dept. of Computer Science, Univ. of Minnesota
- References: <d9isosp6w3.fsf@cs.umn.edu>
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