diff options
| author | gingerBill <bill@gingerbill.org> | 2018-04-10 21:03:51 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-04-10 21:03:51 +0100 |
| commit | fc77b5b4accb8b23c6ecc0a0067b965ba74f6650 (patch) | |
| tree | 02a6cffd8cc4eb93110f303acd955abf3237f54e /src/check_expr.cpp | |
| parent | a83d916fadec8f18ed4baff0133defaff93795b2 (diff) | |
Try to fix internal compiler error in #208
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 9168bdad8..73a6b9b35 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -1016,10 +1016,9 @@ Entity *check_ident(Checker *c, Operand *o, AstNode *n, Type *named_type, Type * if (e->type == nullptr) { - if (e->state == EntityState_Unresolved) { - return nullptr; - } - compiler_error("How did this happen? type: %s; identifier: %.*s\n", type_to_string(e->type), LIT(name)); + // TODO(bill): Which is correct? return or compiler_error? + // compiler_error("How did this happen? type: %s; identifier: %.*s\n", type_to_string(e->type), LIT(name)); + return nullptr; } e->flags |= EntityFlag_Used; |