[Bug c/16602] Spurious warnings about pointer to array -> const pointer to array conversion
jsm28 at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Sep 26 12:10:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list