cc65 / cc65

cc65 - a freeware C compiler for 6502 based systems

Home Page:https://cc65.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[cc65] Regression in type composition

acqn opened this issue · comments

commented

1de1855 is correct when

void foo(int (*)(int));
void foo(int (*)(long)); /* Error: Conflicting function types for 'foo' */

but

void foo();              /* OK */
void foo(int (*)(int));  /* OK */
void foo(int (*)(long)); /* WRONG: Should be an error */

The cause of the issue is easy to find out and a quick fix is done already.