Reply to Benjamin, this is definitely a code gen bug running with -O fixes it (on the current version). By looking at the ASM the only difference seems to be in the register assignments, possibly indicating an unassigned value bug (there is a register that is used without being assigned after that last statement). I'm posting a bug.