compiler: report error for ++/-- applied to a non-numeric type
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 21 Nov 2017 06:14:32 +0000 (06:14 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 21 Nov 2017 06:14:32 +0000 (06:14 +0000)
commit5e43a9eeca114f99248c46495449d6fd4fc2b63e
tree24605dffe6f5f579e42b1ae2a63ea3acb543ff4d
parent8c098567886e155a07aabfeea764d5c67eadbdaf
compiler: report error for ++/-- applied to a non-numeric type

    This avoids a compiler crash.

    Fixes GCC PR 83071.

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

From-SVN: r254983
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/statements.cc