poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compiler bug?


From: John Darrington
Subject: compiler bug?
Date: Sun, 1 Dec 2019 18:56:23 +0100

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]