[Issue 8778] Struct with core.simd type has wrong size and gives Segmentation fault
https://issues.dlang.org/show_bug.cgi?id=8778 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution|--- |WORKSFORME --- Comment #3 from Walter Bright --- I can't reproduce the errors described with the current compiler. But I also suspect you should make the structs 'static'. Non-static structs declared in a function have a hidden extra field added which is a dynamic link to the enclosing function's stack frame. --
[Issue 8778] Struct with core.simd type has wrong size and gives Segmentation fault
http://d.puremagic.com/issues/show_bug.cgi?id=8778 --- Comment #2 from Malte Skarupke 2012-10-08 12:25:14 PDT --- One more comment: I can also get the non-pure Vector4 to segfault by doing this for example: Vector4 a; a.xyzw.array = [1, 2, 3, 4]; Vector4 b = a + a + a + a + a + a; // segfault. probably alignment issue for one of the temporaries Should I create a separate bug for this or should I keep these as one ticket? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8778] Struct with core.simd type has wrong size and gives Segmentation fault
http://d.puremagic.com/issues/show_bug.cgi?id=8778 Don changed: What|Removed |Added CC||clugd...@yahoo.com.au Version|2.041 |D2 --- Comment #1 from Don 2012-10-08 06:05:55 PDT --- (In reply to comment #0) > I have this problem in version 2.060 (but I had to select 2.041 because that's > the newest version in the bug tracker) Those specific version numbers are obsolete. Just use "D1", "D2", or "D1 & D2". -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---