[Bug c/11577] Gcc doesn't handle pointer subtraction right

pinskia at physics dot uc dot edu gcc-bugzilla@gcc.gnu.org
Fri Jul 18 14:26:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11577


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-18 14:26 -------
>From Daniel Jacobowitz <drow at mvista dot com>:
That there's no bug.

       [#9]  When  two pointers are subtracted, both shall point to
       elements of the same array object,  or  one  past  the  last
       element of the array object; the result is the difference of
       the subscripts of the two array elements.



More information about the Gcc-bugs mailing list