Following simple code hang:
typedef _BitInt(32) data_t;
//typedef int32_t data_t; <- this one works
data_t foo(int val) {
return (data_t)val/2;
}
with error:
"Internal error: validateOpType failed in OP_USES(op) @ /home/sdcc-builder/build/sdcc-build/orig/sdcc/src/SDCCopt.c:740: expected symbol, got value"
SDCC 4.2.8 #13656 (MINGW64)
I can reproduce the issue using sdcc from current svn trunk on my Debian GNU/Linux testing system on amd64.
The internal data structures at dump_lospre still look fine, So whatever goes wrong happens after line 3346 in SDCCopt.c, but not after line 3432 in SDCCopt.c.
Last edit: Philipp Klaus Krause 2022-12-04
Fixed in [r13763].
Related
Commit: [r13763]