gnupic: Re: [gnupic] Bug in GPAL 0.13.0 with functions
Subject:
Re: [gnupic] Bug in GPAL 0.13.0 with functions
From:
Andrew de Quincey ####@####.####
Date:
28 Feb 2005 17:44:14 +0000
Message-Id: <200502281744.12669.adq_dvb@lidskialf.net>
On Monday 28 Feb 2005 14:39, ####@####.#### wrote:
> The testfunc consumes and produces one argument, and you must give the
> args. tmp = testfunc(0);
> should work as expected.
You are correct that that is a bug in the example. However, it still gives the
same error even when I pass a value.
I've tried passing a constant as you suggest. I've also tried a variable, but
with the same result.
Updated code:
module test is
function testfunc(arg: in uint8) return uint8 is
begin
return 0;
end function;
procedure main is
tmp : uint8;
begin
tmp = testfunc(0);
end procedure;
end module;
Error:
adq@monstrousfish ~/x $ gpal -p pic16f877 test.pal
gpal: analyze.c:291: test_symbol: Assertion `var->type != ((void *)0)' failed.
Aborted