[Issue 1591] New: 2.006 breaks writef("%s", str) where str is a string

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 17 18:25:31 PDT 2007


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

           Summary: 2.006 breaks writef("%s", str) where str is a string
           Product: D
           Version: 2.006
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: jemandy at earthlink.net


2.006 breaks the following program:

    import std.stdio;
    void main()
    {
        // char[] str = cast(char[])("hello, world");
        string str = cast(string)("hello, world");
        writefln("%s", str);  // Breaks in 2.006
    }

This does not compile with either definition of str, the definition out version
or the active definition.  (Note, the cast is needed for the char[] definition
of str, but not the string definition of str).


-- 



More information about the Digitalmars-d-bugs mailing list