Compiler generates incorrect code for long constant expressions

Known bugs with 1.7
Post Reply
User avatar
dom
Well known member
Posts: 1194
Joined: Sun Jul 15, 2007 10:01 pm

Compiler generates incorrect code for long constant expressions

Post by dom »

The following code snippet will generate code with an incorrect stack offset, this is caused by the collapse of the contant expression.

A fix has been applied in CVS and will be in 1.7.1:

Code: Select all

int main()
{
        long foo =  (257L * 65536L) + 1L;
}
Post Reply