This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]