struct s
{
int name;
};
unsigned char *x = ((unsigned char *)&((struct s *)0)->name);
With sdcc test.c, this results in Internal error: validateOpTypeConst failed in OP_VALUE(op) @ SDCCicode.c:1226: expected value, got symbol. Tested with commit 11647.
This works for me as of [r13827]. I suspect my fix for [bugs:#2983] covers this case, too.
Related
Bugs:
#2983Commit: [r13827]