Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hierarchical identifiers for nested structures do not work properly #541

Closed
nblei opened this issue Mar 9, 2024 · 0 comments · Fixed by #543
Closed

Hierarchical identifiers for nested structures do not work properly #541

nblei opened this issue Mar 9, 2024 · 0 comments · Fixed by #543
Labels
bug Something isn't working

Comments

@nblei
Copy link
Contributor

nblei commented Mar 9, 2024

With veryl 0.7.2

module foo {
    struct bar {
        baz: logic,
    }

    struct baz {
        a: bar,
    }

    var g: baz;

    assign g.a     = 1'b0;
    assign g.a.baz = 1'b0;

}
$ veryl check

Error:   × veryl check failed

Error: unknown_member (link)

  × "a" doesn't have member "baz"
    ╭─[temp/heirarchy_error/src/foo.veryl:12:1]
 12 │     assign g.a     = 1'b0;
 13 │     assign g.a.baz = 1'b0;
    ·            ┬
    ·            ╰── Error location
 14 │
    ╰────
  help:
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants