Thread overview | ||||||
---|---|---|---|---|---|---|
|
August 30, 2011 [Issue 6580] New: scoped classes are aligned incorrectly | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6580 Summary: scoped classes are aligned incorrectly Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: kamm-removethis@incasoftware.de --- Comment #0 from Christian Kamm <kamm-removethis@incasoftware.de> 2011-08-30 12:20:10 PDT --- Test case: import std.typecons; class C { int i; byte b; } void main() { auto sa = [scoped!C, scoped!C]; assert(cast(size_t)&sa[0].i % int.alignof == 0); assert(cast(size_t)&sa[1].i % int.alignof == 0); // fails } The problem is that the payload is declared as private ubyte[__traits(classInstanceSize, T)] Scoped_store = void; in std.typecons.scoped, as discussed at https://github.com/D-Programming-Language/phobos/pull/148#issuecomment-1590157 . -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 04, 2012 [Issue 6580] scoped classes are aligned incorrectly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christian Kamm | http://d.puremagic.com/issues/show_bug.cgi?id=6580 Denis Shelomovskij <verylonglogin.reg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |verylonglogin.reg@gmail.com --- Comment #1 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2012-05-04 23:39:57 MSD --- https://github.com/D-Programming-Language/phobos/pull/570 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 09, 2012 [Issue 6580] scoped classes are aligned incorrectly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christian Kamm | http://d.puremagic.com/issues/show_bug.cgi?id=6580 --- Comment #2 from github-bugzilla@puremagic.com 2012-05-08 23:43:01 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/2503b18d1c6bba9e697e6eb0bf1914a65acdf215 Fix Issue 6580 - scoped classes are aligned incorrectly https://github.com/D-Programming-Language/phobos/commit/84218d3e1ebe5efb04b64e121a27870184334f84 Merge pull request #570 from denis-sh/scoped-bug6580-fix Fix Issue 6580 - scoped classes are aligned incorrectly -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 09, 2012 [Issue 6580] scoped classes are aligned incorrectly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christian Kamm | http://d.puremagic.com/issues/show_bug.cgi?id=6580 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- 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