This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/16602] Spurious warnings about pointer to array -> const pointer to array conversion



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]