[Issue 8900] Using zip with char[] sometimes fails to compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 27 03:28:06 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8900



--- Comment #4 from Peter Alexander <peter.alexander.au at gmail.com> 2012-10-27 03:25:26 PDT ---
(In reply to comment #2)
> Hmm that is strange. I'm using git HEAD too, for dmd, druntime, and phobos. I
> just did a git pull and make clean ; make, and I'm still getting the same
> error.

My bad, I get the bug now on git HEAD.

The break was caused by this:
https://github.com/D-Programming-Language/phobos/pull/880

The problem is that walkLength is called on the second range, which is
infinite. This makes no sense, which is the reason for that pull request.

Where is walkLength called? Zip has a Tuple!R element. And Tuple!R's toString
function tries to print out the range. Why is it only called in version=Bug?
Because formatElement is specialised for strings, and just happens to not call
walkLength eventually.

I'll fix this, but needless to say this is a mess.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list