This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ANSI C, type composition, constant arrays in function arguments
- From: "MikolÃÅ Janota" <mikolas dot janota at gmail dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 21 Sep 2008 19:57:56 +0100
- Subject: ANSI C, type composition, constant arrays in function arguments
According to the ANSI C standard, functions' respective arguments have
to be compatible for the function types to be compatible (6.7.5.3).
However, the following declarations
void p(int p[30]);
void p(int p[4]);
do not yield a warning.
--
MikolÃÅ Janota M. Sc.
School of Computer Science and Informatics,
University College Dublin,
Belfield,
Dublin 4,
Ireland