mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Incorrect visibility on local globals with public aliases. #2519
This commit is contained in:
@@ -5302,6 +5302,10 @@ static inline bool sema_analyse_alias(SemaContext *context, Decl *decl, bool *er
|
||||
}
|
||||
decl->type = symbol->type;
|
||||
decl->define_decl.alias = symbol;
|
||||
if (decl_is_externally_visible(decl) && !decl_is_externally_visible(symbol))
|
||||
{
|
||||
symbol->is_external_visible = true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user