burtonsamograd / sxc

sxc is an 'S-Expression C' transpiler for generating C code using macros written in Common Lisp
212 stars 10 forks source link

SBCL+sxc explodes on `for` without form #6

Open fouric opened 6 years ago

fouric commented 6 years ago

When handed a form such as the following:

(void test ()
  (for () (!= count 0) (-- count)))

...sxc crashes on SBCL 1.3.14debian with Control stack exhausted (no more space for function call frames). Changing either of the other two forms (the loop check and loop counter modifier fields, or whatever they're called) to nil produces the same effect.

burtonsamograd commented 6 years ago

Thanks for the bug report. I'll try and find some time to look into this.