[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2021-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

Dlang Bot  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #16 from Dlang Bot  ---
dlang/phobos pull request #8258 "Fix regression 16705" was merged into stable:

- 1d5d1822ed5081867d2c6c19d2a9b0da03154114 by Ate Eskola:
  Fix issue 16705 - TaskPool.reduce did not work with non-default initializable
ranges

https://github.com/dlang/phobos/pull/8258

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2021-10-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

--- Comment #15 from Dlang Bot  ---
@dukc created dlang/phobos pull request #8282 "Fix regression 16705 - another
attempt" fixing this issue:

- Fix issue 16705 - TaskPool.reduce did not work with non-default initializable
ranges

https://github.com/dlang/phobos/pull/8282

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2021-09-30 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

--- Comment #14 from Dlang Bot  ---
@dukc created dlang/phobos pull request #8258 "Fix regression 16705" fixing
this issue:

- Fix issue 16705 - TaskPool.reduce did not work with non-copyable ranges

https://github.com/dlang/phobos/pull/8258

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2021-08-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

--- Comment #13 from ajiesk...@gmail.com ---
Simplified test case of the issue itself:

```d
void main()
{   import std.parallelism;

struct MyIota
{ size_t front;
  void popFront(){front++;}
  auto empty(){return front >= 100;}
  auto opIndex(size_t i){return front+i;}
  auto length(){return 100-front;}
}

auto mySum = taskPool.reduce!"a + b"(MyIota());
}
```

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2021-08-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

ajiesk...@gmail.com changed:

   What|Removed |Added

 CC||ajiesk...@gmail.com

--- Comment #12 from ajiesk...@gmail.com ---
Simplified case of what the frame pointer error is about:

```d
void main()
{ struct X{ void x(){} }
  auto a = defInit!X;
}

auto defInit(T)(){ return T(); }
```

This won't work, because `struct X` default constructor needs a hidden pointer
to `main` local variables, and `defInit` does not have that pointer. So far, so
good.

However, it also fails in this form:

```d
void main()
{ auto a = defInit!(X!(x=>1));
}

struct X(alias f){ void x(){} }
auto defInit(T)(){ return T(); }
```

I would have expected this one to pass. `x=>1` is completely context
independant, so theoretically `X` should not need a frame pointer to `main()`.
I'm not sure what the langauge spec says about this.

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2019-12-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

berni44  changed:

   What|Removed |Added

 CC||bugzi...@d-ecke.de

--- Comment #11 from berni44  ---
Not sure, if this helps. With the help of dustmite I reduced the example and
Phobos to the following code:

---
void main()
{
TaskPool pool;
pool.reduce(map!(a=>1));
}

struct Task(Args)
{
Args a;
}

struct TaskPool
{
auto reduce(Args)(Args args)
{
return Task!(typeof(args))();
}
}

auto map(fun...)()
{
return MapResult!fun();
}

struct MapResult(alias fun)
{
void x() {}
}
---

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2019-12-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

berni44  changed:

   What|Removed |Added

 CC||ibuc...@gdcproject.org

--- Comment #10 from berni44  ---
*** Issue 17092 has been marked as a duplicate of this issue. ***

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2019-04-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

--- Comment #9 from feklushkin.de...@gmail.com ---
Probably, more info here:
https://issues.dlang.org/show_bug.cgi?id=17092

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2019-04-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

feklushkin.de...@gmail.com changed:

   What|Removed |Added

 CC||feklushkin.de...@gmail.com

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

--- Comment #8 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/a7597df60ed7f78988e875d25b6d48b48189cc33
Fix issue 16705 - TaskPool.reduce fails to compile "cannot get frame pointer to
D main"

https://github.com/dlang/phobos/commit/6a7ad38562882e3587ed68e42e6706e2c23ab1af
Merge pull request #4915 from ZombineDev/patch-8

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2016-12-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

--- Comment #7 from github-bugzi...@puremagic.com ---
Commits pushed to scope at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/a7597df60ed7f78988e875d25b6d48b48189cc33
Fix issue 16705 - TaskPool.reduce fails to compile "cannot get frame pointer to
D main"

https://github.com/dlang/phobos/commit/6a7ad38562882e3587ed68e42e6706e2c23ab1af
Merge pull request #4915 from ZombineDev/patch-8

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2016-12-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

greenify  changed:

   What|Removed |Added

 CC||ronald@gmail.com

--- Comment #6 from greenify  ---
*** Issue 15291 has been marked as a duplicate of this issue. ***

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2016-12-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

ZombineDev  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2016-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/a7597df60ed7f78988e875d25b6d48b48189cc33
Fix issue 16705 - TaskPool.reduce fails to compile "cannot get frame pointer to
D main"

https://github.com/dlang/phobos/commit/6a7ad38562882e3587ed68e42e6706e2c23ab1af
Merge pull request #4915 from ZombineDev/patch-8

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2016-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--


[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2016-11-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705

ZombineDev  changed:

   What|Removed |Added

Summary|TaskPool.reduce fails to|[REG2.069] TaskPool.reduce
   |compile "cannot get frame   |fails to compile "cannot
   |pointer to D main"  |get frame pointer to D
   ||main"
   Severity|normal  |regression

--- Comment #4 from ZombineDev  ---
Changing this is to a regression as the code used to work up to and including
DMD 2.068.2. DMD 2.069.0 is the first version that it started failing. I will
try to bisect the exact commit that introduced this.

--