Closed
Description
Consider the following example
from lpython import S
from sympy import Symbol, pi
def mmrv() -> list[S]:
l1: list[S] = [pi]
return l1
def test_mrv1():
ans: list[S] = mmrv()
el: S = ans[0]
print(el)
test_mrv1()
We get
(lf) anutosh491@spbhat68:~/lpython/lpython$ lpython --enable-symengine --backend=llvm examples/expr2.py
Segmentation fault
The same function would work for a list of any other type but fails to work for a symbolic list.