Go patch committed: Check for errors in array index

Ian Lance Taylor iant@google.com
Wed Dec 15 09:13:00 GMT 2010


This patch adds checks for errors when converting an array index to
GENERIC.  This avoids a crash when indexing into an array with an
invalid element type.  Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 2021 bytes
Desc: crash
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101215/77ea34f1/attachment.bin>


More information about the Gcc-patches mailing list