From 7440060f179e35fe63155a149bb5003c97e12013 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 18 Oct 2026 09:25:36 +0200 Subject: Fix ICE on variable declarations in case branches --- boot/name_analysis.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'boot/name_analysis.cc') diff --git a/boot/name_analysis.cc b/boot/name_analysis.cc index 9305cd2..11380db 100644 --- a/boot/name_analysis.cc +++ b/boot/name_analysis.cc @@ -1628,7 +1628,8 @@ namespace elna::boot this->bag.leave(); info_object->parameters = type_parameters; info_object->exported = declaration->identifier.exported(); - info_object->position.emplace(declaration->position()); + info_object->position.emplace(declaration->position().start(), + declaration->heading().position().end()); info_object->file = this->module_file; info_object->noreturn = noreturn; -- cgit v1.2.3