SDCC : mcs51 2.7.2 # (Jun 28 2007) (UNIX)
svn #4870
the following short piece of code produces an
internal compiler error.
--------------------------------------
xdata at 0x1234 char bar;
void foo() {
*(char volatile xdata *) &bar = 0x80;
}
---------------------------------------
without at, no error is generated
without volatile, no error is generated
with cast to *unsigned* char, no error is generated,
but the resulting asm code doesnt do anything,
(just "ret")
the actual error message is
Internal error: validateOpType failed in OP_SYMBOL(IC_RESULT (ic)) @ SDCCcse.c:2172: expected symbol, got value
Robert Larice
larice 0x40 vidisys 0x2e de
Logged In: YES
user_id=888171
Originator: NO
Fixed in SDCC 2.7.3 #4905