Bug 17147 – package build fails without useful info after upgrade to v2.073.0
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2017-02-05T03:12:00Z
Last change time
2017-02-18T22:58:26Z
Assigned to
nobody
Creator
igor.khasilev
Comments
Comment #0 by igor.khasilev — 2017-02-05T03:12:20Z
After upgrade to v2.073.0 "dub test" for package fails without any useful info:
Performing "unittest" build using dmd for x86_64.
requests 0.4.0+commit.1.g99f7172: building configuration "requests-test-std"...
/Library/D/dmd/src/phobos/std/typecons.d(740,39): Error: template std.algorithm.mutation.swap cannot deduce function from argument types !(Tuple!(_Response delegate(const(App), ref HTTPD_Request, RequestArgs), RequestArgs))(Tuple!(_Response delegate(const(App), ref HTTPD_Request, RequestArgs), "handler", RequestArgs, "args"), Tuple!(_Response delegate(const(App), ref HTTPD_Request, RequestArgs), "handler", RequestArgs, "args")), candidates are:
/Library/D/dmd/src/phobos/std/algorithm/mutation.d(2359,6): std.algorithm.mutation.swap(T)(ref T lhs, ref T rhs) if (isBlitAssignable!T && !is(typeof(lhs.proxySwap(rhs))))
/Library/D/dmd/src/phobos/std/algorithm/mutation.d(2575,6): std.algorithm.mutation.swap(T)(ref T lhs, ref T rhs) if (is(typeof(lhs.proxySwap(rhs))))
Compiling httpbin server
dmd failed with exit code 1.
I don't see line where template instantiation fails.
Info:
package source: https://github.com/ikod/dlang-requests
$ dmd --version
DMD64 D Compiler v2.073.0
Copyright (c) 1999-2016 by Digital Mars written by Walter Bright
Thanks!
Comment #1 by igor.khasilev — 2017-02-18T22:56:09Z