[5042] in Athena Bugs
hc2.1y: array versus pointer in function parameter list
daemon@ATHENA.MIT.EDU (Ken Raeburn)
Sun Jun 3 18:54:09 1990
Date: Sun, 3 Jun 90 18:53:53 -0400
From: Ken Raeburn <Raeburn@MIT.Edu>
To: bugs@ATHENA.MIT.EDU
Source file fragment:
extern void foo (int *);
void foo (int arg[16]) {
}
Error message:
E "foo.c",L6/C6: foo: Function declaration is inconsistent with previous
| declaration at "foo.c",L4/C13.
This is incorrect. Parameters of type "array of <type>" should be
converted to type "pointer to <type>".