[Issue 6049] New: [CTFE]: Array literals of structs with invariant() are wrong
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 23 21:31:43 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6049
Summary: [CTFE]: Array literals of structs with invariant() are
wrong
Product: D
Version: D1 & D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2011-05-23 21:27:29 PDT ---
Applies only to the latest DMD in git. Reduced from unittest failure in
std.datetime.
---
struct Bug6049 {
int m;
this(int x) { m = x; }
invariant() { }
}
const Bug6049[] foo6049 = [Bug6049(6), Bug6049(17)];
static assert(foo6049[0].m == 6);
---
--
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