[Issue 6749] [CTFE] problem with array of structs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 30 22:29:46 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6749
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2011-09-30 22:29:06 PDT ---
Reduced test case:
struct CtState {
string code;
}
CtState bug6749()
{
CtState[] pieces;
CtState r = CtState("correct");
pieces ~= r;
r = CtState("clobbered");
return pieces[0];
}
static assert(bug6749().code == "correct");
Looks like a problem with appending structs.
--
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