From patchwork Thu Sep 2 00:39:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [gccgo] Don't crash when converting abstract integer to interface type Date: Wed, 01 Sep 2010 14:39:21 -0000 From: Ian Taylor X-Patchwork-Id: 63429 Message-Id: To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com This small gccgo patch fixes a crash when an abstract integer is converted to an interface type. Committed to gccgo branch. Ian diff -r 97d6b90859a0 go/expressions.cc --- a/go/expressions.cc Wed Sep 01 17:06:46 2010 -0700 +++ b/go/expressions.cc Wed Sep 01 17:37:35 2010 -0700 @@ -2826,7 +2826,7 @@ void do_determine_type(const Type_context*) { - Type_context subcontext(this->type_, true); + Type_context subcontext(this->type_, false); this->expr_->determine_type(&subcontext); }