[Issue 21197] Wrong lifetime inference with DIP1000 in dmd 2.093.0
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 25 17:33:12 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21197
moonlightsentinel at disroot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |moonlightsentinel at disroot.o
| |rg
--- Comment #1 from moonlightsentinel at disroot.org ---
Reduced example:
==========================================
@safe void check()
{
int random;
auto createGenerator() {
return RndValueGen(&random);
}
scope gen = createGenerator;
}
struct RndValueGen
{
int* rnd;
}
==========================================
--
More information about the Digitalmars-d-bugs
mailing list