[Issue 5596] SortedRange regression

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 16 19:36:09 PST 2011


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



--- Comment #2 from David Simcha <dsimcha at yahoo.com> 2011-02-16 19:33:35 PST ---
Here's a better-reduced test case.  Also see the comments in the test case for
some insight into what's going on here.

import std.range;

// This alias is necessary but not sufficient to reproduce the bug.  Even
// changing the white space in the comparison function, i.e. "a < b" -> "a<b",
// prevents this bug from being reproduced.  Must have to do with multiple
// attempts to instantiate SortedRange with the same parameters.
alias SortedRange!(string[], "a < b") Set;

void main() {
    string[] raw;
    auto foo = assumeSorted(raw);
}

-- 
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