Skip to content

Conversation

@taichi-ishitani
Copy link
Contributor

fix #2009

Namespace associated with an identifier referenced in a always_comb block includes anonymous block names.
For the sample code of the issue, namespace associated with foo.foo.foo is foo_module@1.

However, namespace associated with generic map does not include them.

fn get_namespace_generic_map(&self, namespace: &Namespace) -> Option<Vec<GenericMap>> {

This differnece causes #2009.

To fix this issue, remove anonymous block names from the namespace given to the above function.

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 28, 2025

CodSpeed Performance Report

Merging #2010 will not alter performance

Comparing taichi-ishitani:fix_unknown_member (a174c7e) with master (de9d71a)

Summary

✅ 3 untouched

@dalance dalance merged commit bbb0374 into veryl-lang:master Oct 29, 2025
14 checks passed
@dalance dalance added this to the v0.17.0 milestone Oct 29, 2025
@taichi-ishitani taichi-ishitani deleted the fix_unknown_member branch October 29, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't refer struct member from always_comb block

2 participants