From 101bf5f8414736b0b43a88db64f52c1e7f0c64ab Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Sun, 2 Aug 2026 15:26:35 -0700 Subject: [PATCH] Activate wildcard imports for bare delay identifiers Bare identifiers used as unparenthesized delays construct `PEIdent` directly. This bypasses wildcard package import activation, so a delay reference after an import can resolve to an outer declaration instead of the imported name. Create the identifier through `pform_new_ident()` so the import becomes visible at the reference's lexical position. Signed-off-by: Lars-Peter Clausen --- parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse.y b/parse.y index b31b49fde..15f856e18 100644 --- a/parse.y +++ b/parse.y @@ -3774,8 +3774,8 @@ delay_value_simple } } | identifier_name - { PEIdent*tmp = new PEIdent(lex_strings.make($1), @1.lexical_pos); - FILE_NAME(tmp, @1); + { pform_name_t tmp_name = { name_component_t(lex_strings.make($1)) }; + auto tmp = pform_new_ident(@1, tmp_name); $$ = tmp; delete[]$1; }