reflect: change Value.Call results to not be addressable
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 12 Apr 2016 22:20:30 +0000 (22:20 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 12 Apr 2016 22:20:30 +0000 (22:20 +0000)
commitd90936ff88545c9312a0137725a9b1ab0919ad48
tree28a9c3f2597188d84f187d5dd61f59b16d9a9a40
parent8a434ada27c0dfd6f3e8dcdb9bb2e806f14cec99
reflect: change Value.Call results to not be addressable

    Leaving them incorrectly marked as addressable broke a use of the
    text/template package, because state.evalField checks CanAddr and takes
    the address if it is addressable.

    Reviewed-on: https://go-review.googlesource.com/21908

From-SVN: r234923
gcc/go/gofrontend/MERGE
libgo/go/reflect/all_test.go
libgo/go/reflect/value.go