/usr/src/d/phobos/std/range.d(4590): Error: variable upper used before set

Jonathan M Davis jmdavisProg at gmx.com
Tue Oct 9 19:25:28 PDT 2012


On Wednesday, October 10, 2012 04:12:10 Mehrdad wrote:
> On Wednesday, 10 October 2012 at 01:07:37 UTC, H. S. Teoh wrote:
> > Just wanted to bring to attention a compiler regression related
> > to dmd -O:
> > 
> > http://d.puremagic.com/issues/show_bug.cgi?id=8790
> > 
> > I think this warrants a fix ASAP. :)
> > 
> > 
> > T
> 
> Omg that bug looks... scary

Yeah. I'm pretty sure that it's caused by a circular dependency among 
templates (in this case, takeExactly and hasSlicing). I should have pull 
request which fixes Phobos to resolve the circular dependency relatively soon, 
but that won't fix the compiler bug.

- Jonathan M Davis


More information about the Digitalmars-d mailing list