diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-09-01 01:55:44 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-09-01 01:55:44 +0200 |
| commit | b3a7a5731285625aa9fc6a347841591757860edb (patch) | |
| tree | 94b267ea425a15e7c9bc63c15d8d5580048dd545 /boot/name_analysis.cc | |
| parent | 0f5e9f00b07606871a6289060fa904555d41ae7d (diff) | |
| download | elna-b3a7a5731285625aa9fc6a347841591757860edb.tar.gz | |
Diffstat (limited to 'boot/name_analysis.cc')
| -rw-r--r-- | boot/name_analysis.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/name_analysis.cc b/boot/name_analysis.cc index 70b9031..3c4c6f8 100644 --- a/boot/name_analysis.cc +++ b/boot/name_analysis.cc @@ -420,7 +420,7 @@ namespace elna::boot non_constant_expression_error::initializer{ extract_identifiers(declaration->identifiers) }); } } - else if (resolve_aliases(variable_type).get<constant_type>() != nullptr) + else if (!declaration->is_extern && resolve_aliases(variable_type).get<constant_type>() != nullptr) { auto position_span = source_position(declaration->identifiers.front().id().position().start(), declaration->identifiers.back().id().position().end()); |
