-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrong name mangling with nested function inside unlabelled process
Issue #751
- Loading branch information
Showing
6 changed files
with
98 additions
and
1 deletion.
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,22 @@ | ||
entity issue751 is | ||
end entity; | ||
|
||
architecture test of issue751 is | ||
begin | ||
|
||
-- No Label on this process | ||
process is -- _P0 | ||
function outer return integer is -- WORK.ISSUE751-TEST._P0.OUTER | ||
function inner return integer is -- WORK.ISSUE751-TEST._P0.OUTER.INNER | ||
begin | ||
return 42; | ||
end function; | ||
begin | ||
return inner; | ||
end function; | ||
type abc is (A, B, C); -- WORK.ISSUE751-TEST._P0.ABC | ||
begin | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
entity issue751 is | ||
end entity; | ||
|
||
architecture test of issue751 is | ||
type t_rec is record | ||
x : integer; | ||
y : string(1 to 5); | ||
end record; | ||
|
||
impure function get_rec return t_rec is | ||
begin | ||
return (1, "hello"); | ||
end function; | ||
|
||
constant k : t_rec := get_rec; | ||
begin | ||
|
||
-- This process has no label | ||
process is | ||
function get_x return integer is | ||
begin | ||
return k.x + 1; | ||
end function; | ||
|
||
constant c : integer := get_x; | ||
begin | ||
assert c = 2; | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -826,3 +826,4 @@ issue744 normal,vhpi | |
issue747 fail,gold,gL=10 | ||
vhpi9 normal,vhpi | ||
func25 normal | ||
issue751 normal |
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