From 705ae3f34380f33d1a7e391400ef692becd38c14 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Sun, 1 Jun 2025 12:51:38 -0400 Subject: Fix `quaternion` construction causing compiler crash Previously, a construction of `quaternion(real=0, real=1, real=2, real=3)` could crash the compiler. --- src/check_builtin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/check_builtin.cpp') diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index f384cb7e1..fe3106162 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -2917,6 +2917,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As if (fields_set[*index]) { error(field->field, "Previously assigned field: '%.*s'", LIT(name)); + return false; } fields_set[*index] = style; -- cgit v1.2.3