[Issue 22298] [DIP1000] Nested function's scope parameters can be assigned to variables in enclosing function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 12 16:28:15 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22298
Dennis <dkorpel at live.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |safe, Vision
CC| |dkorpel at live.nl
--- Comment #1 from Dennis <dkorpel at live.nl> ---
The problem is that `VarDeclaration.enclosesLifetimeOf(VarDeclaration v)` in
declaration.d considers parameters to always have a longer lifetime than local
variables, without considering if the parameter and local variable actually
belong to the same function.
--
More information about the Digitalmars-d-bugs
mailing list