This is the mail archive of the
mailing list for the GCC project.
Go patch committed: Provide index information on bounds check failure
- From: Ian Lance Taylor <iant at golang dot org>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, gofrontend-dev <gofrontend-dev at googlegroups dot com>
- Date: Wed, 28 Aug 2019 11:33:12 -0700
- Subject: Go patch committed: Provide index information on bounds check failure
This patch to the Go frontend and libgo changes the panic message
reported for an out of bounds index or slice operation to include the
invalid values. This makes it easier for the user to see what the
problem is. This implements https://golang.org/cl/161477 in the
gofrontend, for https://golang.org/issue/30116. Bootstrapped and ran
Go testsuite on x86_64-pc-linux-gnu. Committed to mainline.
Unfortunately, GMail has once again blocked the patch attachment. So
if you want to see the patch, see