This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: ANSI C, type composition, constant arrays in function arguments
- From: Andreas Schwab <schwab at suse dot de>
- To: Mikoláš Janota <mikolas dot janota at gmail dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Sep 2008 01:04:00 +0200
- Subject: Re: ANSI C, type composition, constant arrays in function arguments
- References: <682003a60809211157r594e147eh551bdf7a2c22fa8@mail.gmail.com>
"Mikoláš Janota" <mikolas.janota@gmail.com> writes:
> However, the following declarations
> void p(int p[30]);
> void p(int p[4]);
>
> do not yield a warning.
See 6.7.5.3#7.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."