-
-
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.
Parsing for signature in attribute name. Fixes #892
- Loading branch information
Showing
6 changed files
with
96 additions
and
23 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
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,30 @@ | ||
entity issue892 is | ||
end entity; | ||
|
||
architecture test of issue892 is | ||
function foo (x : integer) return boolean is | ||
begin | ||
return true; | ||
end function; | ||
|
||
function foo (y : bit) return string is | ||
begin | ||
return "hello"; | ||
end function; | ||
|
||
type my_enum is ('1', '2'); | ||
|
||
attribute test : string; | ||
attribute test of '1' [return my_enum] : literal is "hello"; | ||
begin | ||
|
||
p: process is | ||
begin | ||
report foo [integer return boolean]'instance_name; -- OK | ||
report foo [bit return string]'instance_name; -- OK | ||
report p [integer return bit]'instance_name; -- Error | ||
report '1' [return my_enum]'test; -- OK | ||
wait; | ||
end process; | ||
|
||
end architecture; |
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