Amend allocation procedures with caller location; Compound literals missing type can determine type in certain cases.

This commit is contained in:
gingerBill
2017-11-09 20:51:13 +00:00
parent ac46b2053d
commit 36b0b50ba4
4 changed files with 97 additions and 74 deletions

View File

@@ -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;