-
Todd Wang authored
pointer. An example that triggers the bad behavior on a 64bit machine http://play.golang.org/p/GrNFakAYLN rv1 := reflect.ValueOf(complex128(0)) rt := rv1.Type() rv2 := rv1.Convert(rt) rv3 := reflect.New(rt).Elem() rv3.Set(rv2) Running the code fails with the following: panic: reflect: internal error: storeIword of 16-byte value I've tested on a 64bit machine and verified this fixes the panic. I haven't tested on a 32bit machine so I haven't verified the other cases, but they follow logically. R=golang-dev, r, iant CC=golang-dev https://golang.org/cl/12805045
0e73497a
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
all_test.go | ||
asm_386.s | ||
asm_amd64.s | ||
asm_arm.s | ||
deepequal.go | ||
example_test.go | ||
export_test.go | ||
makefunc.go | ||
set_test.go | ||
tostring_test.go | ||
type.go | ||
value.go |