[Issue 8042] New: extern(C) on structs can cause stack corruption with opEquals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 4 15:10:45 PDT 2012


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 at puremagic.com
        ReportedBy: spunit262 at yahoo.com


--- Comment #0 from Robert DaSilva <spunit262 at yahoo.com> 2012-05-04 15:11:58 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: -------


More information about the Digitalmars-d-bugs mailing list