[Issue 24181] dmd compiled tinylisp.c runtime error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 18 22:45:12 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24181
--- Comment #7 from mw <mingwu at gmail.com> ---
BTW, dmd generate binary also have runtime error with this single file lisp:
https://github.com/Robert-van-Engelen/lisp/blob/main/src/lisp.c
src$ dmd lisp.c
src$ ./lisp
lisp
unbound define ERR 3 unbound symbol
8020+2000>
# dmd -m32 works fine:
src$ dmd -m32 lisp.c
$ ./lisp
lisp
null?
number?
...
defmacro
defun
6322+1929>
GCC, and LDC2 works fine.
--
More information about the Digitalmars-d-bugs
mailing list