compiler: Don't crash on erroneous array return types.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jan 2016 00:00:58 +0000 (00:00 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jan 2016 00:00:58 +0000 (00:00 +0000)
commit4d4acdcd07ae34a0f08b54ee03d4dcd8744646d0
tree80bd8946c4ac76cdafc574db3e15c2d749263a27
parent09a4541b82869fd581e7af72c807720fc90c96cd
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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232858 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/parse.cc