Skip to content

Parser doesn't detect error when an instance field is resolved as a static field #1

Description

@mballance

The parser should report an error when an instance field is referenced as a static field:

component pss_top {
    transparent_addr_space_c<> aspace;
    addr_handle_t              base;

    exec init_down {
        transparent_addr_region_s<> region;
        region.addr = 0x0;
        region.size = 0x1_0000_0000;
        base = aspace.add_nonallocatable_region(region);
    }

    action Entry {
        exec post_solve {
            write32(base, 0x55aaeeff);
        }
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions