[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 4 10:23:12 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20596
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
Minimal test case:
struct S(T) {
void delegate() dg;
this(scope void delegate() dg)
{
this.dg = dg;
}
}
@nogc void fooTemplate() {
int num;
void foo() { int dummy = num; }
scope s = S!int(&foo);
}
--
More information about the Digitalmars-d-bugs
mailing list