ldc-developers / ldc

The LLVM-based D Compiler.
http://wiki.dlang.org/LDC
Other
1.18k stars 255 forks source link

Segmentation fault: ldc2 compiled tinyscheme-1.42 (DMD works fine) #4684

Open mw66 opened 3 weeks ago

mw66 commented 3 weeks ago
tinyscheme-1.42$ ldc2 ./scheme.c 
tinyscheme-1.42$ ./scheme 
Segmentation fault (core dumped)

tried both ldc2-1.34.0-linux-x86_64 ldc2-1.35.0-linux-x86_64

while dmd (v2.108.1) works fine:

tinyscheme-1.42$ dmd scheme.c
tinyscheme-1.42$ ./scheme 
TinyScheme 1.42
ts> (+ 1 3)
4
mw66 commented 3 weeks ago

The source tar file can be found here:

https://sourceforge.net/projects/tinyscheme/files/tinyscheme/tinyscheme-1.42/