This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C11 Internal Error with 64-bit integer

The following snippet of code gives me an internal C11 error. I will appreciate any help in this regard. I am using uVision3 for ARM7 (Philips LPC2148 processor). This of course is a very simplified sample from a relatively large project.

-----------------------------
void main(void)
{
unsigned long* ResultValue = 0;
unsigned long DummyValue = 0;

*ResultValue = (unsigned long long)1 - DummyValue;
}
-----------------------------
main.c(6): error C11: internal error: (asmgen - triple=T0023)
-----------------------------

The error goes away if I replace the constant value "1" with a variable, or replace the variable "DummyValue" with a constant.

Thanks,
Akbar.

0