diff --git a/docs/grammar.txt b/docs/grammar.txt index 490e53bda..b8b2893a2 100644 --- a/docs/grammar.txt +++ b/docs/grammar.txt @@ -96,6 +96,7 @@ Expression | IndexRangeAccess | MemberAccess | FunctionCall + | Expression '{' NameValueList '}' | '(' Expression ')' | ('!' | '~' | 'delete' | '++' | '--' | '+' | '-') Expression | Expression '**' Expression diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index 9f165c75c..c6f139dbf 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -1768,7 +1768,7 @@ ASTPointer Parser::parseLeftHandSideExpression( nodeFactory.markEndPosition(); expectToken(Token::RBrace); - expression = parseLeftHandSideExpression(nodeFactory.createNode(expression, optionList.first, optionList.second)); + expression = nodeFactory.createNode(expression, optionList.first, optionList.second); break; } default: