Bug 4657 – [std.conv] to!int("7") is broken

Status
RESOLVED
Resolution
INVALID
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-08-16T17:26:00Z
Last change time
2010-08-16T17:51:21Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bus_dbugzilla

Comments

Comment #0 by bus_dbugzilla — 2010-08-16T17:26:46Z
import std.conv; void main() { int x = to!int("7"); } On v2.045, v2.046 and v2.047: phobos\std\format.d(1882): Error: template std.array.Appender!(string).Appender.put(U) if (isImplicitlyConvertible!(U,T) || isSomeChar!(T) && isSomeChar!(U)) does not match any function template declaration phobos\std\format.d(1882): Error: template std.array.Appender!(string).Appender.put(U) if (isImplicitlyConvertible!(U,T) || isSomeChar!(T) && isSomeChar!(U)) cannot deduce template function from argument types !()(char[]) On v2.048: phobos\std\algorithm.d(2890): Error: cast(string)_param_1 is not an lvalue
Comment #1 by bus_dbugzilla — 2010-08-16T17:51:21Z
Nevermind. Turned out to be an xfbuild issue, not DMD.