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/14470] x86 optimizer error (?)


------- Additional Comments From zack at gcc dot gnu dot org  2004-03-08 03:12 -------
In the line 

 d = t[d]++;

the postincrement is applied to t[d], not d.  This code is valid; it should
print 1024 and set t[0] to 1025.

The very similar

 d = t[d++];

is indeed invalid.

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


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


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