On Thursday, 29 December 2016 at 21:19:18 UTC, Alexandru Ermicioi wrote:
On Thursday, 29 December 2016 at 21:07:00 UTC, Stefan Koch wrote:
It's a delegate and not function.
Therefore it will get a frame-ptr regardless, without checking if it is needed or not, or if there is a frame to point to.
Since there is no frame to point to you get the error.
At least this is my guess.
Make the delegate a function and the error should disappear.

Yep, making it a function, will eliminate the problem.
Though what I'm also curious is why on LDC it compiles and runs, while on DMD it does not? Should it be registered as a bug on issues.dlang.org, or at ldc bug tracker?

ldc accepts invalid code there.
But it might be that dmd 2.071.2 did that as well.
If so It will be fixed as soon as ldc updates the front-end version.

Reply via email to