[Bug c++/16307] -Wchar-subscripts does not warn on pointers
--- Comment #6 from mueller at gcc dot gnu dot org 2006-10-29 19:13 --- Fixed in 4.3 -- mueller at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16307
[Bug c++/16307] -Wchar-subscripts does not warn on pointers
--- Comment #5 from mueller at gcc dot gnu dot org 2006-10-29 18:38 --- Subject: Bug 16307 Author: mueller Date: Sun Oct 29 18:38:26 2006 New Revision: 118154 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118154 Log: 2006-10-29 Dirk Mueller <[EMAIL PROTECTED]> PR c++/16307 * typeck.c (build_array_ref): Warn for char subscriptions on pointers. * g++.dg/warn/Wchar-subscripts-2.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/warn/Wchar-subscripts-2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16307
[Bug c++/16307] -Wchar-subscripts does not warn on pointers
--- Comment #4 from mueller at gcc dot gnu dot org 2006-10-28 23:22 --- Testing patch. -- mueller at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |mueller at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16307
[Bug c++/16307] -Wchar-subscripts does not warn on pointers
-- What|Removed |Added Status|REOPENED|NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16307
[Bug c++/16307] -Wchar-subscripts does not warn on pointers
-- What|Removed |Added Target Milestone|4.0.0 |--- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16307
[Bug c++/16307] -Wchar-subscripts does not warn on pointers
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-20 20:48 --- Oh, it is not fixed by that patch. -- What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16307
[Bug c++/16307] -Wchar-subscripts does not warn on pointers
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-20 20:42 --- Fixed on the mainline by: 2004-11-20 Joseph S. Myers <[EMAIL PROTECTED]> * c-typeck.c (build_array_ref): Don't check for index == 0. Make checks for neither argument being an array or pointer (swapping the arguments if necessary), the array argument being a pointer to or array of functions and for -Wchar-subscripts warnings upfront. -- What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16307