Fix type info not being generated for types only used in []typeid literals

This commit is contained in:
Franz Hoeltermann
2026-04-28 17:04:52 +02:00
parent 162eab5052
commit 0199c96f47

View File

@@ -12463,6 +12463,7 @@ gb_internal void check_multi_expr_with_type_hint(CheckerContext *c, Operand *o,
break;
case Addressing_Type:
if (type_hint != nullptr && is_type_typeid(type_hint)) {
add_type_info_type(c, o->type);
break;
}
error_operand_not_expression(o);