This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Array subscript has type 'char' and constant expressions
- From: John Levon <levon at movementarian dot org>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 13 Mar 2003 10:40:44 +0000
- Subject: Array subscript has type 'char' and constant expressions
Is there some good reason why this warning does not check
against tree_expr_nonnegative_p ? Wouldn't this fix the warning about
array['a'] (assuming that the constant 'a' is non-negative of course) ?
thanks
john