aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2018-05-03 17:20:44 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-05-03 17:20:44 +0000
commitd18734b5adea54ddd004e51b8d2593752133596c (patch)
treeba9e4b659a522fbb2b33848a593ea9f541faf4bc /libstdc++-v3
parent4e0c5f944ebf4110ddb7ed8352f5bc80fcf0016e (diff)
downloadgcc-d18734b5adea54ddd004e51b8d2593752133596c.zip
gcc-d18734b5adea54ddd004e51b8d2593752133596c.tar.gz
gcc-d18734b5adea54ddd004e51b8d2593752133596c.tar.bz2
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 From-SVN: r259900
Diffstat (limited to 'libstdc++-v3')
0 files changed, 0 insertions, 0 deletions