Skip to content

Commit

Permalink
Fix spurious "ambiguous reference" error with selected names
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed Apr 5, 2021
1 parent 35789ec commit aa5a722
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/names.c
Original file line number Diff line number Diff line change
Expand Up @@ -1882,6 +1882,7 @@ static void solve_subprogram_params(nametab_t *tab, tree_t call, overload_t *o)
|| kind == T_ARRAY_SLICE
|| kind == T_TYPE_CONV
|| kind == T_ATTR_REF
|| kind == T_RECORD_REF
|| (kind == T_REF && tree_has_ref(value));

if (solve_now) {
Expand Down
10 changes: 10 additions & 0 deletions test/parse/names.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -254,4 +254,14 @@ begin
end block;

p17: assert nothere(1) = 5; -- Error

p18: process is
type myrec is record
x, y : bit;
end record;
variable r : myrec;
begin
assert r.x = '1'; -- OK
end process;

end architecture;

0 comments on commit aa5a722

Please sign in to comment.