------- Comment #8 from mimo2 at free dot fr 2007-03-20 18:52 ------- Why do you say the code is undefined. The last version (comment #5) is totally valid, but possible side effects in the function k could lead to different results depending on the fact that the -fbounds-check is set or no. And this is not a sane behaviour.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31269