| author | |
| committer | |
| log | 3a9009b08e278dafd7b59b7d09408c80ea67f1fe |
| tree | 278cc2058a73cdf18c186163cc9a846633e5550e |
| parent | bb4a532785e8bcd0080eeac291bd3b205279f045 |
1 files changed, 4 insertions(+), 0 deletions(-)
src/analyze.cpp+4| ... | ... | @@ -2121,6 +2121,10 @@ static TypeTableEntry *analyze_container_init_expr(CodeGen *g, ImportTableEntry |
| 2121 | 2121 | continue; |
| 2122 | 2122 | } |
| 2123 | 2123 | |
| 2124 | if (type_field->type_entry->id == TypeTableEntryIdInvalid) { | |
| 2125 | return g->builtin_types.entry_invalid; | |
| 2126 | } | |
| 2127 | ||
| 2124 | 2128 | int field_index = type_field->src_index; |
| 2125 | 2129 | field_use_counts[field_index] += 1; |
| 2126 | 2130 | if (field_use_counts[field_index] > 1) { |