Hello, I was going through the source code and I encountered something that seems to be a problem.
Let's say I declare something like this:
int func(int (*)(int parm));
This should be declared as: Array (any elems) of pointer to a function returning int
Per rule 'abstract_declarator -> pointer abstract_declarator2' in 'SDCC.y', the linkage happens like: pointer->next = abstract_declarator2 ($1->next = $2) resulting in 'pointer to array' and not 'array of pointer'.
I am using SDCC 3.4.0-rc2 source.
Log in to post a comment.