]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/go/gofrontend/expressions.cc
compiler: Don't crash on invalid arithmetic ops.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Aug 2015 19:18:51 +0000 (19:18 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Aug 2015 19:18:51 +0000 (19:18 +0000)
commit5706ab685584b7d3ce2f87d9b2815dcc7fe11c17
tree3470b98759341615e593b46dbfdecf711407f53c
parent7ebdc8814144cabb6224f5a50e1bddb357f15fe8
compiler: Don't crash on invalid arithmetic ops.

    The gofrontend would crash after hitting an unreachable state while
    trying to determine the type of an arithmetic expression involving
    non-numeric values.  Instead of crashing, it should fail gracefully
    if the relevant error is already reported.

    Fixes golang/go#11537.

    Reviewed-on: https://go-review.googlesource.com/13793

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