------- Comment #1 from pcarlini at suse dot de  2006-10-09 21:22 -------
Undefined behavior, i.e., anything can happen: array sq has got positions 0..8
whereas d = n % 10 spans 0..9, thus the code writes beyond the end of sq.


-- 

pcarlini at suse dot de changed:

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


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

Reply via email to