http://d.puremagic.com/issues/show_bug.cgi?id=8335
Denis Shelomovskij <verylonglogin....@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |verylonglogin....@gmail.com Summary|DMD ignoring ref for array |`ref` is ignored for static |arguments |array of stucts with | |postblit argument Severity|normal |regression --- Comment #1 from Denis Shelomovskij <verylonglogin....@gmail.com> 2012-07-02 15:03:40 MSD --- Another testcase: --- struct S { int i; version(trigger_assert_in_main) // `@disable` will just be ignored // and postblit will not be called. // Looks like because of Issue 7579. @disable this(this); else this(this) { assert(0); } } void f(ref S[3] arr) { arr[0].i = 7; } void main() { S[3] arr; f(arr); assert(arr[0].i == 7); } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------