cppfront
cppfront copied to clipboard
[BUG] Lifetime safety guards fail through pointers
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.