www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - tharsis.prof tests are broken with dmd 2.068

Hi guys, i am having no luck to fix the bug causing kiith-sa 
project tharsis.prof to successfully build with unittests:

https://github.com/kiith-sa/tharsis.prof/issues/2

the actual compiler error says:

```
C:\_apps\D\dmd2\windows\bin\..\..\src\phobos\std\range\package.d(7180,24):
Error: 'tharsis.prof.ranges.__unittestL516_25.SortedRange!(RangeT!(Array!(Z
oneData)), __lambda2).SortedRange.dbgVerifySorted' is not nothrow
C:\_apps\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\sorting.d(982,29):
Error: template instance tharsis.prof.ranges.__unittestL516_25.assumeSor
ted!(__lambda2, RangeT!(Array!(ZoneData))) error instantiating
source\tharsis\prof\ranges.d(565,8):        instantiated from 
here: sort!((a, b) => a.duration > b.duration, 
cast(SwapStrategy)0, RangeT!(Array!(ZoneD
ata)))
```

and the code causing this is:

```
auto topLevelArray = Array!ZoneData(topLevel);
topLevelArray[].sort!((a, b) => a.duration > b.duration);
```
Aug 12 2015