1

Resolved

unchecked signed overflow should not verify

description

The following verifies:

void test() {
int x;
_(unchecked) x++;
}

According to the C standard, signed arithmetic overflow produces undefined behavior. I didn't find anything in MSDN to contradict this. So we should simply refuse to verify anything with a signed overflow (instead of producing an indeterminate value, which VCC does now).

comments

MichalMoskal wrote Jul 30, 2012 at 11:57 PM

Fixed in changeset 07a76490f573