[Issue 10298] CTFE fails with array literal initialization
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 12 01:38:15 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10298
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |CTFE, wrong-code
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2013-06-12 01:38:14 PDT ---
Reduced test case
--------------
struct Bug10298 {
int m;
}
int bug10298()
{
Bug10298[2] y = [Bug10298(), Bug10298()];
y[0].m = 6;
assert(y[0].m == 6);
return 1;
}
static assert(bug10298());
--
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