commit | 5fcfe352ad91945a4f4d0dcfb6309df9bd072c7d | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Mon Nov 05 12:33:42 2018 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Nov 05 20:58:37 2018 +0000 |
tree | 1658ab3cba351776331ec9b62a1b5efe8f8ec008 | |
parent | df841cce9fd271a25269e3514c2e9b61deaf2c4c [diff] |
compiler: handle abstract type in builtin numeric const value Builtin_call_expression::do_numeric_constant_value can be called by Array_type::verify_length before the determine types pass, so accept an abstract type. Test case is https://golang.org/cl/147537. Fixes golang/go#28601 Change-Id: If4c3365af0f91ebaac0484666d6b318dcb748eb5 Reviewed-on: https://go-review.googlesource.com/c/147442 Reviewed-by: Cherry Zhang <cherryyz@google.com>