r259900 - in /trunk/gcc/go/gofrontend: MERGE ty...
ian@gcc.gnu.org
ian@gcc.gnu.org
Thu May 3 17:20:00 GMT 2018
Author: ian
Date: Thu May 3 17:20:44 2018
New Revision: 259900
URL: https://gcc.gnu.org/viewcvs?rev=259900&root=gcc&view=rev
Log:
compiler: avoid crashing on invalid non-integer array length
Tweak the array type checking code to avoid crashing on array types
whose length expressions are explicit non-integer types (for example,
"float64(10)"). If such constructs are seen, issue an "invalid array
bound" error.
Fixes golang/go#13486.
Reviewed-on: https://go-review.googlesource.com/91975
Modified:
trunk/gcc/go/gofrontend/MERGE
trunk/gcc/go/gofrontend/types.cc
More information about the Gcc-cvs
mailing list