[Issue 17841] New: cannot access frame of function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 19 22:03:22 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17841

          Issue ID: 17841
           Summary: cannot access frame of function
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: sascha.orlov at gmail.com

Given this code

----
import std.algorithm.iteration : sum, cumulativeFold;
void main()
{
    double[5] a;
    auto asum = 1.23;
    auto jProbs = a[].cumulativeFold!((a, b) => (a + b)/asum);
}
----

The last line does not compile. 
See
https://forum.dlang.org/post/mplrntaplbtsoyxkwpqn@forum.dlang.org
probably related to 
https://issues.dlang.org/show_bug.cgi?id=11886 ? 

Used compiler: 
DMD64 D Compiler v2.076.0
on a Mac.

--


More information about the Digitalmars-d-bugs mailing list