Additional fixes on $define

This commit is contained in:
Christoffer Lerno
2025-06-06 15:38:46 +02:00
parent 5e45c34f21
commit 4cfa5441d2
4 changed files with 16 additions and 9 deletions

View File

@@ -4582,7 +4582,7 @@ bool sema_analyse_var_decl(SemaContext *context, Decl *decl, bool local)
CallEnvKind env_kind = context->call_env.kind;
if (is_static) context->call_env.kind = CALL_ENV_FUNCTION_STATIC;
decl->in_init = true;
if (!sema_expr_analyse_assign_right_side(context, NULL, decl->type, init, false, true))
if (!sema_expr_analyse_assign_right_side(context, NULL, decl->type, init, false, true, NULL))
{
context->call_env.kind = env_kind;
return decl_poison(decl);