]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: check slice to pointer-to-array conversion element type
authorIan Lance Taylor <iant@golang.org>
Mon, 2 Aug 2021 23:27:02 +0000 (16:27 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 3 Aug 2021 23:36:20 +0000 (16:36 -0700)
commitcbbd439a33e889a1a47b103951c53472fc8558eb
tree5accf4216504db9d9f0d269cac79d1427303ae4c
parent3a7794b469f897e0141817785738e2faa73119b5
compiler: check slice to pointer-to-array conversion element type

When checking a slice to pointer-to-array conversion, I forgot to
verify that the elements types are identical.

For golang/go#395

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/339329
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/types.cc