digitalmars.D.bugs - [Issue 5942] New: Bitfields are overwritten erroneously
- d-bugmail puremagic.com (32/32) May 07 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5942
- d-bugmail puremagic.com (15/15) Aug 01 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5942
- d-bugmail puremagic.com (12/12) Oct 05 2013 http://d.puremagic.com/issues/show_bug.cgi?id=5942
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 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: -------
May 07 2011
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 --- 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: -------
Aug 01 2012
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 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: -------
Oct 05 2013