Skip to content

[BUG] Errors reported when using attribute (subtype) on indexed array #254

Open
@nselvara

Description

@nselvara

Bug description:
Hi guys, the following errors are reported for the snippet below:
Expected '{identifier}' and Expected 'library', 'use', 'context', 'entity', 'architecture', 'configuration' or 'package'
It seems to be that VHDL LS doesn't allow arrays be indexed when they're used as a type identifier. With the error itself I can live with but it also breaks the entire hovering over labels and stops to produce warning other stuffs.
The code works with Questa Sim 2022.4.

Code to reproduce the error:

type test_arr_t is array (natural range <>) of std_logic_vector(3 downto 0);
signal test_arr_sig: test_arr_t(3 downto 0);
signal test_sig: test_arr_sig(0)'subtype := (others => '0');

Screenshots
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions