[Issue 6742] Alignments in std.variant.Algebraic

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6742

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P2  |P3

--


[Issue 6742] Alignments in std.variant.Algebraic

2019-12-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6742

berni44  changed:

   What|Removed |Added

 CC||bugzi...@d-ecke.de

--- Comment #4 from berni44  ---
On linux, the current compile reports 8 / 16 / 16. As far as I understand this,
this is correct. Did not test windows though.

--


[Issue 6742] Alignments in std.variant.Algebraic

2016-10-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6742

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 6742] Alignments in std.variant.Algebraic

2015-01-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6742

AndyC  changed:

   What|Removed |Added

 CC||a...@squeakycode.net

--- Comment #3 from AndyC  ---
In DMD 2.066.1, I get:


import std.variant: Algebraic;
static assert(double.alignof == 8); //  Error here, this should be 4.

struct Foo { double x; }
alias Algebraic!(Foo) AFoo1;
static assert(AFoo1.sizeof == 12);
struct AFoo2 {
bool b;
double x;
}
static assert(AFoo2.sizeof == 16);  // Error here, it should be 12.
void main() {}

I'm not sure what that means though.

--


[Issue 6742] Alignments in std.variant.Algebraic

2012-05-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6742



--- Comment #2 from bearophile_h...@eml.cc 2012-05-22 15:22:50 PDT ---
(In reply to comment #1)
> Compiles and runs on 2.059 Win32

That's the problem. I think AFoo1.sizeof has to be 16 byte, to respect the
algnment of doubles that is 8.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6742] Alignments in std.variant.Algebraic

2012-04-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6742


SomeDude  changed:

   What|Removed |Added

 CC||lovelyd...@mailmetrash.com


--- Comment #1 from SomeDude  2012-04-27 15:05:18 
PDT ---
Compiles and runs on 2.059 Win32

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---