D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4657 - [std.conv] to!int("7") is broken
Summary: [std.conv] to!int("7") is broken
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 critical
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2010-08-16 17:26 UTC by Nick Sabalausky
Modified: 2010-08-16 17:51 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nick Sabalausky 2010-08-16 17:26:46 UTC
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 Nick Sabalausky 2010-08-16 17:51:21 UTC
Nevermind. Turned out to be an xfbuild issue, not DMD.