compiler: Use context to determine types of complex expressions.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 4 Aug 2015 22:27:48 +0000 (22:27 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 4 Aug 2015 22:27:48 +0000 (22:27 +0000)
commitd69eea11a43b4ae992ecf0ce780f2f4143be72f8
tree1dcdbbe2e9d40efb986d34d7c3a2dd5ee4aaacca
parentf12021edbe3e4806ce83c6c1d12b50d7f4f9d528
compiler: Use context to determine types of complex expressions.

    When determining the type of a complex expression, it is important
    to recognize cases where a complex value can be represented as a
    real number.

    Fixes golang/go#11572.

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

From-SVN: r226596
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc