[Bug c/11751] wrong evaluation order of an expression

schlie at comcast dot net gcc-bugzilla@gcc.gnu.org
Thu Feb 24 14:51:00 GMT 2005

------- Additional Comments From schlie at comcast dot net  2005-02-24 10:34 -------
Although I can confidently say that I've been less than enthusiastic with
some of GCC's standards interpretations; here GCC's results in each of the
examples you cite are within the set of semantically consent values which
should be expected to result from an unspecified evaluation and/or value
assignment order. (Although do agree that GCC has no license to return any
value other than those which would result from these ordering ambiguities).

(Although do believe that GCC should adopt an lr evaluation order; as
expressions which are otherwise ambitious are useless, and those which are
unaffected are insensitive to it; resulting in no harm, only benefit; and with a
little luck may lead to the C/C++ committees coming to their senses in time.)



More information about the Gcc-bugs mailing list