LINUX.ORG.RU

История изменений

Исправление Manhunt, (текущая версия) :

я вот не нашёл...

N1548
Committee Draft — December 2, 2010
ISO/IEC 9899:201x

6.5 Expressions

If a side effect on a scalar object is unsequenced relative to either a different side effect
on the same scalar object or a value computation using the value of the same scalar
object, the behavior is undefined. If there are multiple allowable orderings of the
subexpressions of an expression, the behavior is undefined if such an unsequenced side
effect occurs in any of the orderings.

This paragraph renders undefined statement expressions such as

i = ++i + 1;
a[i++] = i;
while allowing
i = i + 1;
a = i;

Исходная версия Manhunt, :

N1548
Committee Draft — December 2, 2010
ISO/IEC 9899:201x

6.5 Expressions

If a side effect on a scalar object is unsequenced relative to either a different side effect
on the same scalar object or a value computation using the value of the same scalar
object, the behavior is undefined. If there are multiple allowable orderings of the
subexpressions of an expression, the behavior is undefined if such an unsequenced side
effect occurs in any of the orderings.

This paragraph renders undefined statement expressions such as

i = ++i + 1;
a[i++] = i;
while allowing
i = i + 1;
a = i;