Hi All,
I might have found a bug in ghdl 0.33. My code worked with version 0.31
or 0.32 (I can't remember which one I did use at that time).
It seems be relative to default values for procedure parameters of type
"time", as described in the following reproducer:
-------------------------------------------------------
package bug_pkg is
procedure proc_bug(constant t : in time := 8.68 us);
procedure proc_ok1(constant t : in time);
procedure proc_ok2(constant t : in integer := 5);
end bug_pkg;
package body bug_pkg is
procedure proc_bug(constant t : in time := 8.68 us) is
begin
end proc_bug;
procedure proc_ok1(constant t : in time) is
begin
end proc_ok1;
procedure proc_ok2(constant t : in integer := 5) is
begin
end proc_ok2;
end bug_pkg;
----------------------------------------------------
The error message is the following:
> ghdl -a bug_pkg.vhd
bug_pkg.vhd:8:18: body of procedure "proc_bug" does not conform with
specification at bug_pkg.vhd:2:18
The error disappears if I remove the initialization value of the 't'
parameter in both the "proc_bug" procedure declaration and definition.
The full version of the ghdl I use is:
> ghdl --version
GHDL 0.33 (20150921) [Dunoon edition]
Compiled with GNAT Version: 4.8
llvm code generator
Written by Tristan Gingold.
and I am running it on linuxmint 17.1 (rebecca).
Best regards,
Yann
--
Yann Le Corre
Laboratory of Algorithmics, Cryptology and Security (LACS)
FSTC/CSC
UNIVERSITE DU LUXEMBOURG
CAMPUS KIRCHBERG, E206
6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg
T: +352 46 66 44 5795
yann.leco...@uni.lu
www.uni.lu
_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss