This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C2000 Compiler Bug?

Guru 19935 points

Hello,

Please see code below.  I am using C2000 compiler version v6.2.9.

unsigned int x = 0;

int main(void)
{
    x = (x++)%3; // x is zero after this statement.  It should be 1.

    return 0;
}