Message ID | mcrpqddxh66.fsf@dhcp-172-18-216-180.mtv.corp.google.com |
---|---|
State | New |
Headers | show |
diff -r 5c9dac6bacc3 go/expressions.cc --- a/go/expressions.cc Fri Feb 17 11:58:53 2012 -0800 +++ b/go/expressions.cc Fri Feb 17 13:38:46 2012 -0800 @@ -5564,6 +5564,7 @@ && op != OPERATOR_RSHIFT) { // May be a type error--let it be diagnosed later. + return this; } else if (is_comparison) { @@ -5667,6 +5668,7 @@ && op != OPERATOR_RSHIFT) { // May be a type error--let it be diagnosed later. + return this; } else if (is_comparison) { @@ -5750,6 +5752,7 @@ && left_type->base() != right_type->base()) { // May be a type error--let it be diagnosed later. + return this; } else if (op == OPERATOR_EQEQ || op == OPERATOR_NOTEQ) {