diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-09-29 22:27:53 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-09-29 22:27:53 +0000 |
commit | 3734a25644d2f7ea652303f4268de9e52e4a5a64 (patch) | |
tree | be482fe03750db0319b2dd4ca21fd62cdae003d3 /gcc/tree-ssanames.c | |
parent | 01bdcc80e25866fcd982075617f62a53c18659a3 (diff) | |
download | gcc-3734a25644d2f7ea652303f4268de9e52e4a5a64.zip gcc-3734a25644d2f7ea652303f4268de9e52e4a5a64.tar.gz gcc-3734a25644d2f7ea652303f4268de9e52e4a5a64.tar.bz2 |
compiler: Accept untyped integral values as string/array indices.
When determining the type of an index for a string/array indexing
expression, the gofrontend would disallow floating-point and complex
values even if they were integral and throw an internal error. This
patch changes gofrontend to use an integral type context when
determining the types of a string/array index.
Fixes golang/go#11545.
Reviewed-on: https://go-review.googlesource.com/13796
From-SVN: r228270
Diffstat (limited to 'gcc/tree-ssanames.c')
0 files changed, 0 insertions, 0 deletions