This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14313] fail to warn of inconsistent prototype: const char * const vs. const char *
- From: "jsm at polyomino dot org dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Feb 2004 14:19:06 -0000
- Subject: [Bug c/14313] fail to warn of inconsistent prototype: const char * const vs. const char *
- References: <20040227010626.14313.wje@acm.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jsm at polyomino dot org dot uk 2004-02-27 14:19 -------
Subject: Re: fail to warn of inconsistent prototype: const char
* const vs. const char *
On Fri, 27 Feb 2004, rth at gcc dot gnu dot org wrote:
> Not a bug. 6.7.5.3/15: "... corresponding parameters shall have compatible
> types ...", and indeed they are.
The relevant sentence is actually the last one of that paragraph ("... and
each parameter declared with qualified type is taken as having the
unqualified version of its declared type").
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14313