www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3216] New: Type-unsafe struct initializing

reply d-bugmail puremagic.com writes:
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: nobody puremagic.com
        ReportedBy: rayerd.wiz 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: -------
Jul 30 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3216


Jarrett Billingsley <jarrett.billingsley gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jarrett.billingsley gmail.c
                   |                            |om
         Resolution|                            |DUPLICATE




--- Comment #1 from Jarrett Billingsley <jarrett.billingsley gmail.com> 
2009-07-30 08:42:40 PDT ---
Yeah, I made a duplicate of this one too.

*** This issue has been marked as a duplicate of issue 2469 ***

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