]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: Don't crash on erroneous array return types.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 27 Jan 2016 00:00:58 +0000 (00:00 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 27 Jan 2016 00:00:58 +0000 (00:00 +0000)
commit82c1a217fe9478361b91ebb8514282b729467991
tree80bd8946c4ac76cdafc574db3e15c2d749263a27
parent7c97a53ac2991e7804c72b4a168773212307db3b
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
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/parse.cc