compiler: type of string index expression is byte

To make this work from the do_type method, add "byte" and "rune" to
the list of known integer types, and look them up that way rather than
via gogo->lookup_global.

For golang/go#8745

Change-Id: Ie63fb3bc0efc1bad240c3d9585ee94eca5fe71ba
Trust: Ian Lance Taylor <>
Reviewed-by: Cherry Zhang <>
6 files changed