Check to see if a normal type is being used in a typeid context

This commit is contained in:
gingerBill
2026-04-27 09:23:04 +01:00
parent 01734dfa9b
commit a40f275b0c

View File

@@ -12457,6 +12457,9 @@ gb_internal void check_multi_expr_with_type_hint(CheckerContext *c, Operand *o,
error_operand_no_value(o);
break;
case Addressing_Type:
if (type_hint != nullptr && is_type_typeid(type_hint)) {
break;
}
error_operand_not_expression(o);
break;
}