www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3287] New: DANGER!! Generating wrong binaries by initializing of between different type structs

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3287

           Summary: DANGER!! Generating wrong binaries by initializing of
                    between different type structs
           Product: D
           Version: 2.032
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid, wrong-code
          Severity: normal
          Priority: P1
         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);
    writeln(v.b);
}

// DANGER!! crash on running!!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 03 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3287


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-09-03 09:48:19 PDT ---


*** 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: -------
Sep 03 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3287





--- Comment #2 from Haruki Shigemori <rayerd.wiz gmail.com>  2009-09-03
11:39:55 PDT ---
Oh, sorry!
I forgot the first commit.
This is the second commit about the same issue.

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