Strange vibe.d build error

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Dec 27 16:28:59 UTC 2017


On Sat, Dec 23, 2017 at 10:39:37AM +0000, Petar via Digitalmars-d wrote:
> On Thursday, 21 December 2017 at 21:10:39 UTC, H. S. Teoh wrote:
> > After pulling from vibe.d git master today, my vibe.d project doesn't
> > compile anymore. `dub build` dies with:
> > 
> > 	/usr/src/d/vibe.d/stream/vibe/stream/memory.d(56,42): Error:
> > constructor vibe.utils.array.AllocAppender!(ubyte[],
> > ubyte).AllocAppender.this (IAllocator alloc, ubyte[] initial_buffer =
> > null) is not callable using argument types (IAllocator)
> > 
> > No idea where to even start looking, because the error message
> > doesn't make sense. The ctor is stated to take an IAllocator as
> > first parameter, and an optional second parameter defaulting to
> > null. So why does calling the ctor with an instance of IAllocator
> > fail?!
[...]
> Most likely, it's because of this:
> https://github.com/vibe-d/vibe.d/pull/1983

Ah, figures!


> If you use dmd nightly you should see a better error message, courtesy of:
> https://github.com/dlang/dmd/pull/7405
> https://github.com/dlang/dmd/pull/7441
> https://github.com/dlang/dmd/pull/7448

I was using dmd git master.


T

-- 
Everybody talks about it, but nobody does anything about it!  -- Mark Twain


More information about the Digitalmars-d mailing list