This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one
- From: "jbeulich at novell dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2007 09:39:27 -0000
- Subject: [Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one
- References: <bug-33076-14983@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jbeulich at novell dot com 2007-09-19 09:39 -------
Isn't this the same as 16602 (which I don't really understand why it was
rejected as invalid)? Also, if this *is* invalid, then what proper mechanism
does one have to express what is intended here? And why does similar code
compile warning free in C++?
--
jbeulich at novell dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jbeulich at novell dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33076