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] Parameters with no type specified in K&R-style function declarations

acqn opened this issue · comments

commented

An identifier list in a function declarator that is not part of a function definition shall be empty.

int f(a); /* Should be an error */

Clarification: this currently doesn't compile so there is not such a "bug". However, a fix for some other issues (eg. #2302) could probably "enable" this wrong code. Moreover the current diagnostic message doesn't reflect what is actually wrong with this code. So this is a "TODO" issue.