This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17654] Pointless warning on incompatible pointer types
- 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 Sep 2004 15:32:45 -0000
- Subject: [Bug c/17654] Pointless warning on incompatible pointer types
- References: <20040924151647.17654.jbeulich@novell.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jsm at polyomino dot org dot uk 2004-09-27 15:32 -------
Subject: Re: Pointless warning on incompatible pointer types
On Mon, 27 Sep 2004, jbeulich at novell dot com wrote:
> Thus I continue to believe that this is an omission on the part of the standard,
> and would hence want to see gcc provide at least an optional way to circumvent
> this problem.
That way at present is to use the C++ compiler, if you want the C++
const-correctness rules. Such a change was proposed for C99 in
<http://www.open-std.org/JTC1/SC22/WG14/www/docs/n754.htm>. I do not know
why it was not adopted although the impression I get is that it was
proposed too late in the process and there wasn't enough time at the
relevant meeting. I would suggest it might be worth proposing such a
change again when features for C1x are under consideration in some years'
time; C++ provides the prior art.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17654