]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/gc: do not consider length zero arrays as comparable.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 30 Jan 2014 23:30:56 +0000 (00:30 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 30 Jan 2014 23:30:56 +0000 (00:30 +0100)
commit502958ffa65440dd79a31f831114d51a610242ef
tree2c1bc413994916e061ab38e69418dc2baf57e8d8
parent1683dab725f66320d3d9d500b33233a11930f596
cmd/gc: do not consider length zero arrays as comparable.

Array values are comparable if values of the array element type
are comparable.

Fixes #6526.

LGTM=khr
R=rsc, bradfitz, khr
CC=golang-codereviews
https://golang.org/cl/58580043
src/cmd/gc/subr.c
test/cmp6.go