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 middle-end/27272] Strange order of components of multidimensional array pointer with the same cast



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-04-23 20:49 -------
*(pointer_yn)[0][6]

is different from:
(*pointer_yn)[0][6]

In fact the first one is equivalant to:
pointer_yn[0][6][0]

While the second one is equivalant to:
pointer_yn[0][0][6]

so you are running into different ordering of array references.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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