[Issue 4635] to!string fails for Variant and structs with uninitalized ("=void") static arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 26 14:35:11 PDT 2011


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |andrej.mitrovich at gmail.com
         Resolution|                            |FIXED


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-05-26 14:30:52 PDT ---
Seems to work in 2.053:

import std.conv;
import std.stdio;

struct S
{
  ubyte[1] raw = void;
}
static assert(is(typeof(S.init)));  // ok

void main() { S s; writeln(to!string(s)); }  // ok

Marking as fixed.

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