* Martin Michlmayr: >> Does help to compile it with "-fwrapv" ? > > No. Then it's a real bug in -fwrapv support, I guess. Without -fwrapv, all bets are off AFAICS because the example code results in signed integer overflow.