Commit d47cbb6d by Ian Lance Taylor

compiler: No error if shift operand inherits interface type.

From-SVN: r191634
parent 2afc1e0b
......@@ -5453,7 +5453,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"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment