www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - What is this ? Howw to solve it ?

reply "Domingo Alvarez Duarte" <mingodad gmail.com> writes:
With dmd trunk trying to compile vibed after fixing several array 
declarations from C style to D style I'm getting this error that 
I do not understand:
-----------
Building vibe-d 0.7.21-rc.2 configuration "libevent", build type 
debug.
Running dmd...
/home/mingo/dev/d/src/install/bin/../../../src/phobos/std/con
ainer/array.d(432): 
Error: cannot implicitly convert expression ((inout inout(Range) 
__ctmp3047 = 0;
  , __ctmp3047).this(this, 0LU, this.length())) of type 
inout(Range) to Range
source/vibe/core/drivers/timerqueue.d(29):        while looking 
for match for BinaryHeap!(Array!(TimeoutEntry), "a.timeout > 
b.timeout")
source/vibe/core/drivers/libevent2.d(74): Error: template 
instance vibe.core.drivers.timerqueue.TimerQueue!(TimerInfo, 
10000L) error instantiating
-----------

Any clue from the experts ?
Oct 14 2014
parent reply "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm gmx.net> writes:
On Wednesday, 15 October 2014 at 04:36:27 UTC, Domingo Alvarez 
Duarte wrote:
 With dmd trunk trying to compile vibed after fixing several 
 array declarations from C style to D style I'm getting this 
 error that I do not understand:
 -----------
 Building vibe-d 0.7.21-rc.2 configuration "libevent", build 
 type debug.
 Running dmd...
 /home/mingo/dev/d/src/install/bin/../../../src/phobos/std/con
ainer/array.d(432): 
 Error: cannot implicitly convert expression ((inout 
 inout(Range) __ctmp3047 = 0;
  , __ctmp3047).this(this, 0LU, this.length())) of type 
 inout(Range) to Range
 source/vibe/core/drivers/timerqueue.d(29):        while looking 
 for match for BinaryHeap!(Array!(TimeoutEntry), "a.timeout > 
 b.timeout")
 source/vibe/core/drivers/libevent2.d(74): Error: template 
 instance vibe.core.drivers.timerqueue.TimerQueue!(TimerInfo, 
 10000L) error instantiating
 -----------

 Any clue from the experts ?
It was caused by the change in this PR: https://github.com/D-Programming-Language/phobos/pull/2573 Someone else already reported the same problem. I'll add a link to your post.
Oct 15 2014
parent "Martin Nowak" <code dawg.eu> writes:
On Wednesday, 15 October 2014 at 08:23:29 UTC, Marc Sch├╝tz wrote:
 Someone else already reported the same problem. I'll add a link 
 to your post.
Where, I didn't found any Bugzilla issue, so I opened one. https://issues.dlang.org/show_bug.cgi?id=13621
Oct 15 2014