exaloop / codon

A high-performance, zero-overhead, extensible Python compiler using LLVM
https://docs.exaloop.io/codon
Other
13.96k stars 498 forks source link

Segmentation fault for zero-length comprehension #402

Closed hsmajlovic closed 11 months ago

hsmajlovic commented 1 year ago

The following snippet causes a segmentation fault. Getting rid of comprehension avoids it.

b = [1 for _ in range(0)]
b.append(1)
print(b)
arshajii commented 1 year ago

Fixing in https://github.com/exaloop/codon/pull/420