This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/32490] gcc does not make the difference between pointers and arrays at all



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-06-25 07:22 -------
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) )


-- 

pinskia at gcc dot gnu dot org changed:

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]