[Issue 5596] SortedRange regression

2011-07-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5596


yebblies  changed:

   What|Removed |Added

   Keywords||rejects-valid
 CC||yebbl...@gmail.com
   Platform|Other   |All
 OS/Version|Windows |All


--- Comment #4 from yebblies  2011-07-12 20:36:47 EST ---
Reduced:


struct X(alias a) { void fx() { a = 4; } int a; }

alias X!"a" x;

void y(alias b)() { X!b g; }

void main()
{
y!("a")();
}

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


[Issue 5596] SortedRange regression

2011-02-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5596



--- Comment #3 from David Simcha  2011-02-16 19:48:48 PST ---
Also note that changing the comparison function in the assumeSorted line makes
this bug go away, too.

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


[Issue 5596] SortedRange regression

2011-02-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5596



--- Comment #2 from David Simcha  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" -> "ahttp://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 5596] SortedRange regression

2011-02-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5596



--- Comment #1 from David Simcha  2011-02-16 07:46:57 PST ---
Forgot to paste in the error message.  Here it is:

d:\dmd2\windows\bin\..\..\src\phobos\std\range.d(5415): Error: this for _input
needs to be type SortedRange not type SortedRange!(string[],"a < b")

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