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: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2007 12:09:54 -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 #6 from jsm28 at gcc dot gnu dot org 2007-09-26 12:09 -------
When you apply const to "array of int", the resulting type is "array of const
int" not "const array of int"; that's how type qualifiers and arrays interact
in C, there is no such thing as a qualified array type. "array of const int"
is not a const-qualified type in C.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16602