[Issue 4657] New: [std.conv] to!int("7") is broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 16 17:26:50 PDT 2010


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

           Summary: [std.conv] to!int("7") is broken
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: cbkbbejeap at mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2010-08-16 17:26:46 PDT ---
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

-- 
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