[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template

2020-08-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20596 Walter Bright changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template

2020-08-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20596 --- Comment #8 from Walter Bright --- Closed and new bug report created: https://issues.dlang.org/show_bug.cgi?id=21140 --

[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template

2020-08-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20596 Walter Bright changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template

2020-08-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20596 --- Comment #7 from johanenge...@weka.io --- Another example that fails compilation: ``` struct S(T) { void delegate() dg; this(scope void delegate() dg) { this.dg = dg; } } // The explicit `scope` here is not used in

[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template

2020-08-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20596 johanenge...@weka.io changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template

2020-04-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20596 Dlang Bot changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template

2020-04-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20596 Walter Bright changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template

2020-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20596 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #4 from Dlang Bot ---

[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template

2020-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20596 --- Comment #3 from Walter Bright --- Here's the problem. There were two PRs: https://github.com/dlang/dmd/pull/8504 which extended checking of addressing of delegates to constructor calls with the line in expressionsem.d: if

[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template

2020-04-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20596 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #2

[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template

2020-02-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20596 johanenge...@weka.io changed: What|Removed |Added Keywords||performance --

[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template

2020-02-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20596 --- Comment #1 from johanenge...@weka.io --- Extra note: the error is only triggered if the delegate is defined in an @nogc function. Without @nogc, this is a silent performance regression (or worse). --

[Issue 20596] [REG2.086] Error on missed stack allocation for closure for template

2020-02-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20596 johanenge...@weka.io changed: What|Removed |Added Keywords||industry, rejects-valid --