From eb81c00ada08368eb89cb02de511c1ed3b431040 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sat, 4 Dec 2021 01:00:33 +0100 Subject: [PATCH] Fix failed parsing of ct_assert --- src/compiler/parse_global.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/parse_global.c b/src/compiler/parse_global.c index 1e3383453..72217f0cd 100644 --- a/src/compiler/parse_global.c +++ b/src/compiler/parse_global.c @@ -2294,7 +2294,7 @@ Decl *parse_top_level_statement(Context *context) case TOKEN_CT_ASSERT: if (!check_no_visibility_before(context, visibility)) return poisoned_decl; { - ASSIGN_AST_ELSE(Ast *ast, parse_ct_assert_stmt(context), false); + ASSIGN_AST_ELSE(Ast *ast, parse_ct_assert_stmt(context), poisoned_decl); decl = decl_new(DECL_CT_ASSERT, ast->span.loc, visibility); decl->ct_assert_decl = ast; if (docs)