From d47cbb6dd43e5cd02d107f336cbd9554c62acd80 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 22 Sep 2012 06:33:10 +0000 Subject: [PATCH] compiler: No error if shift operand inherits interface type. From-SVN: r191634 --- gcc/go/gofrontend/expressions.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index b99dc5ce58e..eef7ea7c25e 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -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")); -- 2.30.2