This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32490] gcc does not make the difference between pointers and arrays at all
- From: "ftwilliam at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jun 2007 07:39:50 -0000
- Subject: [Bug c/32490] gcc does not make the difference between pointers and arrays at all
- References: <bug-32490-14358@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from ftwilliam at gmail dot com 2007-06-25 07:39 -------
(In reply to comment #1)
> b+4096 is the same as (typeof(b)) ( ((char*)b) + 4096 * sizeof(*b) ) which is
> not you wanted.
>
> You should write it as:
> (chunk*) ( ((char*)b) + 4096+sizeof(chunk) )
>
Thank you very much !!!
Sincerely,
William Tambe
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32490