D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8042 - extern(C) on structs can cause stack corruption with opEquals
Summary: extern(C) on structs can cause stack corruption with opEquals
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 All
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-04 15:11 UTC by Robert DaSilva
Modified: 2024-12-13 17:59 UTC (History)
0 users

See Also:


Attachments
test case (202 bytes, application/octet-stream)
2012-05-04 15:11 UTC, Robert DaSilva
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Robert DaSilva 2012-05-04 15:11:58 UTC
Created attachment 1100 [details]
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.
Comment 1 dlangBugzillaToGithub 2024-12-13 17:59:50 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18437

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB