From 1eb9994d88b874b2f4ac3fdc4d314b1e67fa511b Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 29 Oct 2017 15:46:23 +0000 Subject: Attributes; @(link_name="foo") --- src/check_stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_stmt.cpp') diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index d7caae280..7cbf479e4 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -206,7 +206,7 @@ Type *check_assignment_variable(Checker *c, Operand *rhs, AstNode *lhs_node) { check_expr(c, &lhs, lhs_node); if (lhs.mode == Addressing_Invalid || - lhs.type == t_invalid) { + (lhs.type == t_invalid && lhs.mode != Addressing_Overload)) { return nullptr; } -- cgit v1.2.3