[Issue 7557] Sea of errors after template failure

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 21 12:04:50 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7557



--- Comment #3 from Vladimir Panteleev <thecybershadow at gmail.com> 2012-02-21 12:04:41 PST ---
OK. Here's the output of the problem I've encountered:

C:\Projects\DFeed\ae\demo\http> dbuild httpserve.d
C:\Projects\ae\sys\shutdown.d(24): Error: function
ae.sys.signals.addSignalHandler (int signum, void delegate() fn) is not
callable using argument types (int,void)
C:\Projects\ae\sys\shutdown.d(24): Error: cannot implicitly convert expression
(shutdown()) of type void to void delegate()

Above are correct errors (I forgot a &). The error messages below are unrelated
to the above problems, and go away after I add the &.

C:\Soft\dmd2d\src\phobos\std\string.d(538): Error: expression isSomeChar!(char)
of type void does not have a boolean value
C:\Projects\ae\net\http\server.d(71): Error: template std.string.indexOf(Char)
if (isSomeChar!(Char)) does not match any function template declaration
C:\Projects\ae\net\http\server.d(71): Error: template std.string.indexOf(Char)
if (isSomeChar!(Char)) cannot deduce template function from argument types
!()(string,string
)
C:\Soft\dmd2d\src\phobos\std\string.d(448): Error: constraint isSomeChar!(char)
is not constant or does not evaluate to a bool
C:\Soft\dmd2d\src\phobos\std\string.d(612): Error: constraint isSomeChar!(char)
is not constant or does not evaluate to a bool
C:\Soft\dmd2d\src\phobos\std\algorithm.d(3893): Error: expression
isInputRange!(string) of type void does not have a boolean value
C:\Soft\dmd2d\src\phobos\std\algorithm.d(3963): Error: expression
isInputRange!(string) of type void does not have a boolean value
C:\Soft\dmd2d\src\phobos\std\algorithm.d(4015): Error: expression
isInputRange!(string) of type void does not have a boolean value
C:\Projects\ae\net\http\server.d(93): Error: template
std.algorithm.startsWith(alias pred = "a == b",Range,Ranges...) if
(isInputRange!(Range) && Ranges.length > 1 && is(t
ypeof(.startsWith!(pred)(doesThisStart,withOneOfThese[0])) : bool) &&
is(typeof(.startsWith!(pred)(doesThisStart,withOneOfThese[1..__dollar])) :
uint)) does not match any
function template declaration
C:\Projects\ae\net\http\server.d(93): Error: template
std.algorithm.startsWith(alias pred = "a == b",Range,Ranges...) if
(isInputRange!(Range) && Ranges.length > 1 && is(t
ypeof(.startsWith!(pred)(doesThisStart,withOneOfThese[0])) : bool) &&
is(typeof(.startsWith!(pred)(doesThisStart,withOneOfThese[1..__dollar])) :
uint)) cannot deduce templ
ate function from argument types !()(string,string)
C:\Soft\dmd2d\src\phobos\std\string.d(538): Error: expression isSomeChar!(char)
of type void does not have a boolean value
C:\Projects\ae\net\http\server.d(98): Error: template std.string.indexOf(Char)
if (isSomeChar!(Char)) does not match any function template declaration
C:\Projects\ae\net\http\server.d(98): Error: template std.string.indexOf(Char)
if (isSomeChar!(Char)) cannot deduce template function from argument types
!()(string,string
)
C:\Soft\dmd2d\src\phobos\std\conv.d(253): Error: constraint
isImplicitlyConvertible!(string,uint) is not constant or does not evaluate to a
bool
C:\Soft\dmd2d\src\phobos\std\conv.d(358): Error: constraint
isStaticArray!(string) is not constant or does not evaluate to a bool
C:\Soft\dmd2d\src\phobos\std\conv.d(450): Error: expression
isImplicitlyConvertible!(string,uint) of type void does not have a boolean
value
C:\Soft\dmd2d\src\phobos\std\conv.d(500): Error: expression
isImplicitlyConvertible!(string,uint) of type void does not have a boolean
value
C:\Soft\dmd2d\src\phobos\std\conv.d(572): Error: expression
isImplicitlyConvertible!(string,uint) of type void does not have a boolean
value
( ... 962 lines omitted ... )


I can't reproduce this right now, but should I try to reduce this problem if I
encounter it again, or is this a known bug?

I remember seeing this issue a long time ago, but not recently - until a few
days ago. So I think it was triggered by the "soldier on" change, like this
bug.

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


More information about the Digitalmars-d-bugs mailing list