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

           Summary: Type-unsafe struct initializing
           Product: D
           Version: 2.031
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: rayerd....@gmail.com


import std.stdio;

struct X {
    int a;
}
struct Y {
    string b;
}

void main() {
    Y v = X(10000); // type-unsafe
    writeln(v.b);
}

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

Reply via email to