OSDN Git Service

compiler: Permit (_) on left hand side of =.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Feb 2012 23:36:58 +0000 (23:36 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Feb 2012 23:36:58 +0000 (23:36 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184356 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/go/gofrontend/parse.cc

index 6eb1981..df28d2b 100644 (file)
@@ -2491,7 +2491,7 @@ Parse::operand(bool may_be_sink)
       if (token->is_op(OPERATOR_LPAREN))
        {
          this->advance_token();
-         ret = this->expression(PRECEDENCE_NORMAL, false, true, NULL);
+         ret = this->expression(PRECEDENCE_NORMAL, may_be_sink, true, NULL);
          if (!this->peek_token()->is_op(OPERATOR_RPAREN))
            error_at(this->location(), "missing %<)%>");
          else