diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-10-18 09:25:36 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-10-18 22:54:00 +0200 |
| commit | 7440060f179e35fe63155a149bb5003c97e12013 (patch) | |
| tree | abdcb8aa74513312b2cc92d4c2b2b986c29fbc03 /boot/name_analysis.cc | |
| parent | 81043b67437445dcf83055098490e04cc88ff7ee (diff) | |
| download | elna-7440060f179e35fe63155a149bb5003c97e12013.tar.gz | |
Fix ICE on variable declarations in case branches
Diffstat (limited to 'boot/name_analysis.cc')
| -rw-r--r-- | boot/name_analysis.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
