]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler, runtime: allow slice to array pointer conversion
authorIan Lance Taylor <iant@golang.org>
Sat, 31 Jul 2021 00:19:42 +0000 (17:19 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 2 Aug 2021 22:27:08 +0000 (15:27 -0700)
commit7459bfa8a37a4fbd6ed5153bff76f49d372b4ace
treee0c96ae718c359f5a026b93a2c3cf31eb4587fca
parent06d0437d4a5faca2b695918cbe1d54a61935c98b
compiler, runtime: allow slice to array pointer conversion

Panic if the slice is too short.

For golang/go#395

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/338630
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/runtime.def
gcc/go/gofrontend/types.cc
gcc/testsuite/go.test/test/convert4.go [new file with mode: 0644]
libgo/go/runtime/error.go
libgo/go/runtime/panic.go