[Issue 4616] Link error with copy constructor of nested struct
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 17 01:45:52 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4616
Dmitry S <ds.dlang at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ds.dlang at gmail.com
--- Comment #1 from Dmitry S <ds.dlang at gmail.com> 2012-12-17 01:45:51 PST ---
This no longer seems to be reproducible. With dmd compiled from the current
head, the following code (a bit more involved to test it better) compiles and
works (on MacOSX):
import std.stdio;
struct S {
struct N {
S s;
this(this) { s.value += 1; }
}
int value = 17;
}
int main() {
S.N n1;
S.N n2 = n1;
writefln("%d %d", n1.s.value, n2.s.value);
return 0;
}
Prints "17 18".
--
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