[Issue 6637] New: Postblits of static array elements are not called on function argument
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 9 09:13:58 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6637
Summary: Postblits of static array elements are not called on
function argument
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2011-09-09 09:13:45 PDT ---
struct S
{
static int spblit;
this(this){ ++spblit; }
}
void test()
{
void func(S[3] sa){}
S[3] sa;
func(sa); // sa should be copied
assert(S.spblit == 3);
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list