------- Comment #1 from rguenth at gcc dot gnu dot org 2008-08-09 18:01 ------- This works for me as far as I can see (you didn't specify the expected output, and certainly if the loop doesn't run as often as you want you may print uninitialized memory). Anyway, if it doesn't work then it is because d_phase overflows and so invokes undefined behavior.
-- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37067