This is the mail archive of the gcc@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]

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


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