>Our new compiler has some problems with this line:
>pBuf[i++] = Calc(pBuf, i);
>The Assembler-Code generated uses the increases "i" as a Paramter in
>Calc. Our old Compiler did not do this. So who is right.
Probably neither. See section 3.1 of the FAQ.
You'll need to rewrite the expression so that it gives you the answer
you want without relying on undefined behaviour .
>And where is the lay (ANSI-C Definition) written ans available, that
>says ist is rigth, and this is wrong?
ISO C standard 6.5.2
Between the previous and next sequence point an object shall have its
stored value modified at most once by the evaluation of an expression.
Furthermore, the prior value shall be read only to determine the value
to be stored.
I believe that in the above expression, you are reading it once to
determine the value to store, and once to pass to a function, and you
also modify it.
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---