From 8f9ba0c67479d8926edead8aa828458c5b3bc1be Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 8 Sep 2026 11:12:30 +0200 Subject: Fix ICE when variable name is resolved as type --- include/elna/boot/name_analysis.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/elna/boot/name_analysis.h b/include/elna/boot/name_analysis.h index cf35ab6..4a22df7 100644 --- a/include/elna/boot/name_analysis.h +++ b/include/elna/boot/name_analysis.h @@ -43,6 +43,7 @@ namespace elna::boot undeclared_type, undeclared_trait, undeclared_symbol, + not_a_type, local_export }; struct redefinition @@ -180,6 +181,11 @@ namespace elna::boot procedure_type_expression& expression); ordered_map build_composite_type(const std::vector& fields, ordered_map& field_names, const type& aggregate); + /* + * Resolves a type expression, reporting names that denote something + * other than a type. + */ + type resolve_type(type_expression& expression); type lookup_primitive_type(const std::string& name); std::filesystem::path redefinition_file(const std::shared_ptr& original) const; std::shared_ptr register_variable(const std::string& name, -- cgit v1.2.3