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++/17507] Problems with shift and increment operator precedence


------- Additional Comments From work at paul dot dubuc dot org  2004-09-15 18:54 -------
I also tried this code on Red Hat Linux with GCC 3.2.2:

 ./a.out abcdef
         pui=0xbffffa28  *pui=66656463
puc (before)=0xbffffa28
puc  (after)=0xbffffa2c  uint=63636363

Here the address is being incremented 4 times but the result still only consists
of the firt byte (taking into account the endian differences)
repeated 4 times.

g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)


-- 


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


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