Compiler generates incorrect code for long constant expressions
Posted: Tue Jul 17, 2007 6:23 pm
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:
A fix has been applied in CVS and will be in 1.7.1:
Code: Select all
int main()
{
long foo = (257L * 65536L) + 1L;
}