--- 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 y
--- 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:
--- Comment #1 from john dot spelis at 3dlabs dot com 2008-09-21 16:01
---
Created an attachment (id=16372)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16372&action=view)
A standalone program which illustrates the problem
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37609