Thread overview | |||||
---|---|---|---|---|---|
|
May 07, 2011 [Issue 5942] New: Bitfields are overwritten erroneously | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5942 Summary: Bitfields are overwritten erroneously Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: samukha@voliacable.com --- Comment #0 from Max Samukha <samukha@voliacable.com> 2011-05-07 04:03:20 PDT --- struct S { mixin(bitfields!( int, "a" , 32, int, "b" , 32 )); } void main() { S data; data.b = 42; data.a = 1; assert(data.b == 42); // fail } Looks like assigning fields at offsets < 32 bit clears fields at offsets >= 32 bit. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 01, 2012 [Issue 5942] Bitfields are overwritten erroneously | ||||
---|---|---|---|---|
| ||||
Posted in reply to Max Samukha | http://d.puremagic.com/issues/show_bug.cgi?id=5942 Era Scarecrow <rtcvb32@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |rtcvb32@yahoo.com AssignedTo|nobody@puremagic.com |rtcvb32@yahoo.com --- Comment #1 from Era Scarecrow <rtcvb32@yahoo.com> 2012-08-01 08:08:03 PDT --- resolving issues 6686 and 8474 resolve this problem. Once pull is accepted, this will be resolved. http://d.puremagic.com/issues/show_bug.cgi?id=6686 http://d.puremagic.com/issues/show_bug.cgi?id=8474 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 05, 2013 [Issue 5942] Bitfields are overwritten erroneously | ||||
---|---|---|---|---|
| ||||
Posted in reply to Max Samukha | http://d.puremagic.com/issues/show_bug.cgi?id=5942 David Nadlinger <code@klickverbot.at> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |code@klickverbot.at Resolution| |FIXED --- Comment #2 from David Nadlinger <code@klickverbot.at> 2013-10-05 08:17:46 PDT --- https://github.com/D-Programming-Language/phobos/pull/1613 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation