| ... | @@ -1342,6 +1342,7 @@ static TypeTableEntry *analyze_container_init_expr(CodeGen *g, ImportTableEntry | ... | @@ -1342,6 +1342,7 @@ static TypeTableEntry *analyze_container_init_expr(CodeGen *g, ImportTableEntry |
| 1342 | if (container_type->id == TypeTableEntryIdInvalid) { | 1342 | if (container_type->id == TypeTableEntryIdInvalid) { |
| 1343 | return container_type; | 1343 | return container_type; |
| 1344 | } else if (container_type->id == TypeTableEntryIdStruct && | 1344 | } else if (container_type->id == TypeTableEntryIdStruct && |
| | 1345 | !container_type->data.structure.is_unknown_size_array && |
| 1345 | kind == ContainerInitKindStruct) | 1346 | kind == ContainerInitKindStruct) |
| 1346 | { | 1347 | { |
| 1347 | StructValExprCodeGen *codegen = &container_init_expr->resolved_struct_val_expr; | 1348 | StructValExprCodeGen *codegen = &container_init_expr->resolved_struct_val_expr; |
| ... | @@ -1410,7 +1411,7 @@ static TypeTableEntry *analyze_container_init_expr(CodeGen *g, ImportTableEntry | ... | @@ -1410,7 +1411,7 @@ static TypeTableEntry *analyze_container_init_expr(CodeGen *g, ImportTableEntry |
| 1410 | } | 1411 | } |
| 1411 | } else { | 1412 | } else { |
| 1412 | add_node_error(g, node, | 1413 | add_node_error(g, node, |
| 1413 | buf_sprintf("type '%s' does not support %s syntax", | 1414 | buf_sprintf("type '%s' does not support %s initialization syntax", |
| 1414 | buf_ptr(&container_type->name), err_container_init_syntax_name(kind))); | 1415 | buf_ptr(&container_type->name), err_container_init_syntax_name(kind))); |
| 1415 | return g->builtin_types.entry_invalid; | 1416 | return g->builtin_types.entry_invalid; |
| 1416 | } | 1417 | } |