Skip to content

[BUG] Lifetime safety guards fail through pointers #1385

Open
@ShalokShalom

Description

@ShalokShalom

Describe the bug

It seems like the pointers creating a memory issues here.

To Reproduce

main: () -> int = {
    y: * int;
    {
        x := unique.new<int>(10);
        y = x*&;
    }
    std::cout << y* ;
}

Compiled with Clang and pure Cpp2.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions