This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37609] Pointer arithmetic yields strange result
- From: "john dot spelis at 3dlabs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2008 20:40:35 -0000
- Subject: [Bug c/37609] Pointer arithmetic yields strange result
- References: <bug-37609-8983@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from john dot spelis at 3dlabs dot com 2008-09-22 20:40 -------
Subject: Re: Pointer arithmetic yields strange result
Apologies; never realised that pointer arithmetic was defined
in that fashion (i.e. must always be a multiple of the object size).
Sorry to have bothered you.
Best Regards.
On 22 Sep 2008, pinskia at gcc dot gnu dot org wrote:
>
>
> ------- Comment #4 from pinskia at gcc dot gnu dot org 2008-09-22 19:54 -------
> This is invalid code as the difference between ((EDIDDetailed *)
> &pExt->checksum) - pDTD is 88 which is not a multiple of 18. This happens the
> same way on powerpc.
>
>
> --
>
> pinskia at gcc dot gnu dot org changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|NEW |RESOLVED
> Component|target |c
> Resolution| |INVALID
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37609
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37609