PATCH: avoid warnings on array[CHAR_CONSTANT]

Richard Henderson rth@redhat.com
Wed Jun 11 04:37:00 GMT 2003


On Tue, Jun 10, 2003 at 04:19:12PM -0700, Eddie Kohler wrote:
>     i += a['A'];  // { dg-bogus "array subscript has type `char'" }

I'm of two minds for this.

Are you aware, for instance, that LATIN CAPITAL LETTER A has
value 0xc1 in EBCDIC?  Indeed, all of isalnum is >= 0x81 in
that character set.


r~



More information about the Gcc-patches mailing list