http://d.puremagic.com/issues/show_bug.cgi?id=8068
Ali Cehreli <acehr...@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |acehr...@yahoo.com --- Comment #1 from Ali Cehreli <acehr...@yahoo.com> 2012-05-17 22:55:43 PDT --- With dmd 2.059 64-bit, I get a "segmentation fault" even though none of the format() calls have 6 items. There are three layers of structs in the following code: Outer, Inner, InnerMost: import std.stdio; import std.string; struct InnerMost { int m0; int m1; string toString() { return format("%s %s", m0, m1); } } struct Inner { string m0; int m1; InnerMost m2; InnerMost m3; string toString() const { return format("%s %s %s %s", m0, m1, m2, m3); } } struct Outer { Inner m0; string toString() const { return format("%s", m0); } } void main() { auto im0 = InnerMost(0, 0); auto im1 = InnerMost(1, 1); auto i = Inner("hello", 42, im0, im1); auto o = Outer(i); o.toString(); } When built with -m32, there is no bug. Also, when I replace the first two lines of main with the default initializations: auto im0 = InnerMost(); auto im1 = InnerMost(); This time I get "null this" similar to bug 6576. Ali -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------