This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: (int *const) function parameter
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 14 Aug 2009 14:04:59 +0000 (UTC)
- Subject: Re: (int *const) function parameter
- References: <4A8562B2.7020608@free.fr>
On Fri, 14 Aug 2009, Marc Mason wrote:
> Hello,
>
> The following code is rejected by one compiler, while it is accepted by gcc
> without any warning. Several people in comp.lang.c seem to think that it is a
> bug in the first compiler which should ***not*** reject the program.
>
> Message-ID: <h63e5s$ecu$1@aioe.org>
> http://groups.google.com/group/comp.lang.c/browse_frm/thread/2858a1c9ccdcd741
>
> I'd like to ask what you think.
Bugs in other compilers are offtopic for this list. The relevant wording
from 6.7.5.3#15 has already been quoted in that discussion.
--
Joseph S. Myers
joseph@codesourcery.com