[Issue 7230] Crash during printing anonymous union with writeln family functions.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 5 02:38:25 PST 2012


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #2 from bearophile_hugs at eml.cc 2012-01-05 02:38:21 PST ---
Code copied here to increase its visibility:


import std.stdio;
struct Bug7230 {
    union {
        string a;
        int b;
    }
}
void main() {
    Bug7230 bug;
    bug.b = 123;
    writeln(bug);
}

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