cmd/gc: emit error for out-of-bounds slice of constant string

Fixes issue 7200.

LGTM=gri, iant
R=golang-codereviews, gri, iant
CC=golang-codereviews, r
https://codereview.appspot.com/150020044