mirror of git://gcc.gnu.org/git/gcc.git
compiler: No error if shift operand inherits interface type.
From-SVN: r191634
This commit is contained in:
parent
2afc1e0b30
commit
d47cbb6dd4
|
|
@ -5453,7 +5453,8 @@ Binary_expression::do_determine_type(const Type_context* context)
|
||||||
&& (this->left_->type()->integer_type() == NULL
|
&& (this->left_->type()->integer_type() == NULL
|
||||||
|| (subcontext.type->integer_type() == NULL
|
|| (subcontext.type->integer_type() == NULL
|
||||||
&& subcontext.type->float_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 "
|
this->report_error(("invalid context-determined non-integer type "
|
||||||
"for shift operand"));
|
"for shift operand"));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue