Issue 17841 - cannot access frame of function
Summary: cannot access frame of function
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Mac OS X
: P3 normal
Assignee: No Owner
URL:
Keywords:
: 18091 (view as issue list)
Depends on:
Blocks:
 
Reported: 2017-09-19 22:03 UTC by Alex
Modified: 2024-03-19 09:55 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Alex 2017-09-19 22:03:22 UTC
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.
Comment 1 Paul Backus 2020-09-21 19:23:48 UTC
*** Issue 18091 has been marked as a duplicate of this issue. ***