www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: cbkbbejeap mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap 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: -------
Aug 16 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4657


Nick Sabalausky <cbkbbejeap mailinator.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #1 from Nick Sabalausky <cbkbbejeap mailinator.com> 2010-08-16
17:51:21 PDT ---
Nevermind. Turned out to be an xfbuild issue, not DMD.

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