I downloaded the last version of GHDL and run its analysis on the
following file:
----------------------------------------------
entity a is end entity a;
architecture b of a is
type rec is record
a : integer;
end record;
subtype x is rec;
type x_vec is array (natural range <>) of x;
function x_res(to_resolve : x_vec) return x;
subtype rx is x_res x;
function x_res(to_resolve : x_vec) return x is
variable r : x;
begin
r.a := 0;
return r;
end function x_res;
begin
end architecture b;
----------------------------------------------
It said "a.vhd:10:21: no matching resolution function for 'x_res'".
If I delete "subtype x is rec;" line and make x a record instead of
subtype, all went fine.
This is clearly a bug.
I send it here, as GNA is quite hostile to visitors. I hardly managed
to register there. ;)
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss