Menu

#3016 Internal error when compiling array with function call in array declaration

open
nobody
None
other
5
2020-06-06
2020-06-06
No
char arr[f(d) ? 0 : 0];

Compiling this with sdcc test.c gives Internal error: validateLink failed in SPEC_SCLS(cexpr->etype) @ SDCCast.c:1858: expected SPECIFIER, got null-link. Tested with commit 11647.

Discussion


Log in to post a comment.

Auth0 Logo