www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8042] New: extern(C) on structs can cause stack corruption with opEquals

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

           Summary: extern(C) on structs can cause stack corruption with
                    opEquals
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: spunit262 yahoo.com



PDT ---
Created an attachment (id=1100)
test case

It looks like what's happening is the extern(C) on the struct is affecting the
hidden helper function __xopEquals use by the typeinfo.

Once I figured out what was wrong, it was easy enough to make sure the strut
was extern(C), but actually figure out what was going wrong wasn't easy.

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