You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package p is
pure function f(
i : boolean
) return integer;
end package p;
package body p is
pure function f(
i : boolean
) return integer is
begin
if (i = false) then
return 0;
else
return 1;
end if;
end function f;
end package body p;
use work.p.all;
package q is
constant d : integer := f(true) + 1;
end package q;
package body q is
end package body q;
use work.q.all;
entity issueI is
begin
assert (d = 2);
end entity issueI;
architecture a of issueI is
begin
end architecture a;
w/ proposed regression issueI,
then i got,
NOTE:
tools/nvc-wrapper.sh
is my lazy wrapper script, echos some commands and eval them, you can found here. https://gist.github.com/hiyuh/9639531IMHO, it looks similar scope problem as reported at issue #53.
The text was updated successfully, but these errors were encountered: