From 36b0b50ba4c01184389ce0522c47582e45eb8950 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 9 Nov 2017 20:51:13 +0000 Subject: Amend allocation procedures with caller location; Compound literals missing type can determine type in certain cases. --- src/parser.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 4ba465e64..abc556d5c 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2223,6 +2223,9 @@ AstNode *parse_operand(AstFile *f, bool lhs) { return ast_basic_lit(f, token); } + case Token_OpenBrace: + if (!lhs) return parse_literal_value(f, nullptr); + break; case Token_OpenParen: { Token open, close; -- cgit v1.2.3