projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2afc1e0
)
compiler: No error if shift operand inherits interface type.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Sat, 22 Sep 2012 06:33:10 +0000
(06:33 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Sat, 22 Sep 2012 06:33:10 +0000
(06:33 +0000)
From-SVN: r191634
gcc/go/gofrontend/expressions.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/expressions.cc
b/gcc/go/gofrontend/expressions.cc
index b99dc5ce58e1b3ae51d9e438b7eb469757f41c75..eef7ea7c25ecfd70792f4c0fdce923467a0e6b95 100644
(file)
--- 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"));