From cb0a70cac9da5235bb5e6978eb6d62e4d2c6ed7d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 6 Dec 2012 04:11:54 +0000 Subject: compiler: Correct test for whether go/defer arg is parenthesized. From-SVN: r194240 --- gcc/go/gofrontend/parse.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gcc/go/gofrontend/parse.h') diff --git a/gcc/go/gofrontend/parse.h b/gcc/go/gofrontend/parse.h index 9743bb5..99e0eee 100644 --- a/gcc/go/gofrontend/parse.h +++ b/gcc/go/gofrontend/parse.h @@ -216,7 +216,7 @@ class Parse Range_clause*, Type_switch*); void function_decl(bool saw_nointerface); Typed_identifier* receiver(); - Expression* operand(bool may_be_sink); + Expression* operand(bool may_be_sink, bool *is_parenthesized); Expression* enclosing_var_reference(Named_object*, Named_object*, Location); Expression* composite_lit(Type*, int depth, Location); @@ -224,15 +224,16 @@ class Parse Expression* create_closure(Named_object* function, Enclosing_vars*, Location); Expression* primary_expr(bool may_be_sink, bool may_be_composite_lit, - bool* is_type_switch); + bool* is_type_switch, bool* is_parenthesized); Expression* selector(Expression*, bool* is_type_switch); Expression* index(Expression*); Expression* call(Expression*); Expression* expression(Precedence, bool may_be_sink, - bool may_be_composite_lit, bool* is_type_switch); + bool may_be_composite_lit, bool* is_type_switch, + bool *is_parenthesized); bool expression_may_start_here(); Expression* unary_expr(bool may_be_sink, bool may_be_composite_lit, - bool* is_type_switch); + bool* is_type_switch, bool* is_parenthesized); Type* reassociate_chan_direction(Channel_type*, Location); Expression* qualified_expr(Expression*, Location); Expression* id_to_expression(const std::string&, Location); -- cgit v1.1