<p dir="ltr">It's probably a real issue. We've had to change the code that emits this error message (or something very similar) recently - yes, for inexplicable reasons it's in the glue layer.</p>
<p dir="ltr"> - David<br></p>
<p dir="ltr">---<br>
Sent from a mobile device.</p>
<div class="gmail_quote">On 20 Oct 2015 7:17 pm, "Russel Winder via digitalmars-d-ldc" <<a href="mailto:digitalmars-d-ldc@puremagic.com">digitalmars-d-ldc@puremagic.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The construct:<br>
<br>
  immutable pi = 4.0 * delta * taskPool.reduce!"a + b"(map!((int i){<br>
        immutable x = (i - 0.5) * delta;<br>
        return 1.0 / (1.0 + x * x);})<br>
    (iota(1, n + 1)));<br>
<br>
compiles fine with dmd 2.068.2. I believe it compiles fine with<br>
LDC 0.14.0 as packaged in Debian Sid. However with LDC compiled from<br>
Git master, 2.068 branch, I get:<br>
<br>
/home/users/russel/Built/include/d/std/parallelism.d(2637): Error: cannot access frame pointer of pi_parallel_unbatched_reduce.main.MapResult!(__lambda2, Result).MapResult<br>
/home/users/russel/Built/include/d/std/parallelism.d(2433): Error: function std.parallelism.TaskPool.reduce!"a + b".reduce!(MapResult!(__lambda2, Result)).reduce no return exp; or assert(0); at end of function<br>
pi_parallel_unbatched_reduce.d(36): Error: template instance std.parallelism.TaskPool.reduce!"a + b".reduce!(MapResult!(__lambda2, Result)) error instantiating<br>
<br>
LDC reports it's version as:<br>
<br>
LDC - the LLVM D compiler (d85d25):<br>
  based on DMD v2.068.0 and LLVM 3.6.2<br>
  Default target: x86_64-pc-linux-gnu<br>
  Host CPU: penryn<br>
  <a href="http://dlang.org" rel="noreferrer" target="_blank">http://dlang.org</a> - <a href="http://wiki.dlang.org/LDC" rel="noreferrer" target="_blank">http://wiki.dlang.org/LDC</a><br>
<br>
Is this likely a real problem or is it some stupidity I have inflicted<br>
on my set up?<br>
<br>
--<br>
Russel.<br>
=============================================================================<br>
Dr Russel Winder      t: <a href="tel:%2B44%2020%207585%202200" value="+442075852200">+44 20 7585 2200</a>   voip: <a href="mailto:sip%3Arussel.winder@ekiga.net">sip:russel.winder@ekiga.net</a><br>
41 Buckmaster Road    m: <a href="tel:%2B44%207770%20465%20077" value="+447770465077">+44 7770 465 077</a>   xmpp: <a href="mailto:russel@winder.org.uk">russel@winder.org.uk</a><br>
London SW11 1EN, UK   w: <a href="http://www.russel.org.uk" rel="noreferrer" target="_blank">www.russel.org.uk</a>  skype: russel_winder<br>
<br>
</blockquote></div>