[Issue 20809] return statement might access memory from destructed temporary
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 13 14:57:30 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20809
--- Comment #6 from welkam <wwwelkam at gmail.com> ---
This function works as expected
int foo()
{
S test = S(2);
return test.a;
}
--
More information about the Digitalmars-d-bugs
mailing list