-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a regression in aggregate type checking. Fixes xxx
- Loading branch information
Showing
4 changed files
with
59 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
entity test is | ||
end entity test; | ||
|
||
architecture rtl of test is | ||
|
||
subtype slv64_type is bit_vector(0 to 63); | ||
type slv64_array_type is array (natural range <>) of slv64_type; | ||
|
||
constant zeroes : bit_vector(0 to 31) := x"00000000"; | ||
constant more_zeroes : bit_vector(0 to 31) := x"00000000"; | ||
|
||
-- doesn't work in nvc 1.15.0, works in nvc 1.14.2 | ||
-- error: ambiguous use of operator "&" | ||
constant test_constant : slv64_array_type := (zeroes & more_zeroes, zeroes & more_zeroes); | ||
|
||
begin | ||
end architecture rtl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters