Thanks to visit codestin.com
Credit goes to github.com

Skip to content

list.pop segmentation fault #2215

Closed
@davidbrochart

Description

@davidbrochart

The following code segfaults:

from lpython import i32

a: list[i32] = []
i: i32
for i in range(10):
    a.append(1)
    a.pop()

Commenting out a.pop() doesn't segfaults, or even replacing it with print(a.pop()).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions