This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16602] Spurious warnings about pointer to array -> const pointer to array conversion
- From: "raeburn at raeburn dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2007 17:27:16 -0000
- Subject: [Bug c/16602] Spurious warnings about pointer to array -> const pointer to array conversion
- References: <bug-16602-8968@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from raeburn at raeburn dot org 2007-09-19 17:27 -------
(In reply to comment #3)
> I'm not convinced by the explanation in the comment. A pointer to array *is*
> compatible with the corresponding const pointer type; -Wcast-qual may apply
> too, but that's not exhibited in the test case.
That's what I originally thought, but now (as I explained in a comment to
33076) I think there's a quirk of the standard that makes them not compatible.
I'd be happy to be shown to be wrong -- but can you provide specific references
to the standard to refute my argument in 33076?
--
raeburn at raeburn dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |raeburn at raeburn dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16602