Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. Change-Id: I84ec06bb944b8af34ec5e5864a5149c11c782919 Reviewed-on: https://go-review.googlesource.com/13793 Reviewed-by: Ian Lance Taylor <[email protected]>
- Loading branch information