compiler: Avoid multiple evaluations in interface conversions.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 19 Dec 2014 04:05:59 +0000 (04:05 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 19 Dec 2014 04:05:59 +0000 (04:05 +0000)
commit47b6f9825f7867fcd91e3150ce6f95676ee3985d
treef0c7bc42b43b5f309e19843219ffc246003ea207
parent0f3e3f28e9c7bcf0fbaeffa00dc60f2a908d5d48
compiler: Avoid multiple evaluations in interface conversions.

Added assertions for cases that might lead to multiple
evaluations, and fixed all the problems I saw.

Test case already in master Go testsuite
(https://go-review.googlesource.com/#/c/1710/).

From-SVN: r218884
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/statements.h