Message ID | mcr7hekpgmc.fsf@google.com |
---|---|
State | New |
Headers | show |
diff -r 6f834ce27f8b go/expressions.cc --- a/go/expressions.cc Tue Jan 04 11:45:52 2011 -0800 +++ b/go/expressions.cc Tue Jan 04 12:15:47 2011 -0800 @@ -2680,7 +2680,8 @@ // object is an abstract int or float, we try to get the abstract // value. Otherwise we may lose something in the conversion. if (this->type_ != NULL - && this->constant_->const_value()->type()->is_abstract()) + && (this->constant_->const_value()->type() == NULL + || this->constant_->const_value()->type()->is_abstract())) { Expression* expr = this->constant_->const_value()->expr(); mpz_t ival;