compiler: No error if shift operand inherits interface type.

From-SVN: r191635
This commit is contained in:
Ian Lance Taylor 2012-09-22 06:33:35 +00:00
parent dee1ca6060
commit 74e0597fba
1 changed files with 2 additions and 1 deletions

View File

@ -5459,7 +5459,8 @@ Binary_expression::do_determine_type(const Type_context* context)
&& (this->left_->type()->integer_type() == NULL
|| (subcontext.type->integer_type() == NULL
&& subcontext.type->float_type() == NULL
&& subcontext.type->complex_type() == NULL)))
&& subcontext.type->complex_type() == NULL
&& subcontext.type->interface_type() == NULL)))
this->report_error(("invalid context-determined non-integer type "
"for shift operand"));