[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiler bug?
From: |
Jose E. Marchesi |
Subject: |
Re: compiler bug? |
Date: |
Thu, 05 Dec 2019 13:19:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Loading this Poke program:
deftype xxx = struct
{
char[2] c;
};
defun sum = (offset<int, xxx> input) void:
{
defvar h = xxx @ input + 0#xxx;
}
causes poke to assert with:
/home/john/SRC/poke/src/pkl-typify.c:515: pkl_typify1_ps_add:
Assertion `PKL_AST_CODE (unit_type_2) == PKL_AST_INTEGER' failed.
Yes, that's a compiler bug. I have a branch on progress with fixes
related to offsets, that should fix this as well.
And indeed this is fixed now in master.
Thanks for reporting!