aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2016-01-27 00:00:58 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2016-01-27 00:00:58 +0000
commit82c1a217fe9478361b91ebb8514282b729467991 (patch)
tree80bd8946c4ac76cdafc574db3e15c2d749263a27 /gcc/tree-sra.c
parent7c97a53ac2991e7804c72b4a168773212307db3b (diff)
downloadgcc-82c1a217fe9478361b91ebb8514282b729467991.zip
gcc-82c1a217fe9478361b91ebb8514282b729467991.tar.gz
gcc-82c1a217fe9478361b91ebb8514282b729467991.tar.bz2
compiler: Don't crash on erroneous array return types.
Another issue with erroneous array types. When an erroneous array type is in a function's signature, particularly the return type, we must guarantee that type is changed into an error type. Otherwise, any operations that work on arrays and slices will crash when applied to the erroneous array return type. Fixes golang/go#12939. Reviewed-on: https://go-review.googlesource.com/16235 From-SVN: r232858
Diffstat (limited to 'gcc/tree-sra.c')
0 files changed, 0 insertions, 0 deletions