digitalmars.D.bugs - [Issue 6049] New: [CTFE]: Array literals of structs with invariant() are wrong
- d-bugmail puremagic.com (28/28) May 23 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6049
- d-bugmail puremagic.com (11/11) May 23 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6049
- d-bugmail puremagic.com (7/9) May 24 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6049
- d-bugmail puremagic.com (12/12) May 24 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6049
- d-bugmail puremagic.com (11/11) May 27 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6049
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 puremagic.com ReportedBy: clugdbug yahoo.com.au 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: -------
May 23 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6049 Jonathan M Davis <jmdavisProg gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdavisProg gmx.com PDT --- So, as a temporary fix to make the autotester is passing, commenting out the invariants should fix the problem? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 23 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6049So, as a temporary fix to make the autotester is passing, commenting out the invariants should fix the problem?Yes, but I already have a DMD pull request that fixes the problem <g>. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 24 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6049 PDT --- Then I won't worry about it :). Invariants have been a source of trouble with std.datetime though and appear to be an area in the language implementation that still has some warts. IIRC, it caused some issues with purity initially definite issues as well (hence why SysTime's invariant is commented out). Well, as annoying as such bugs are, at least we're running into them so that we can fix them. Thanks for looking into this one. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 24 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6049 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED https://github.com/D-Programming-Language/dmd/commit/91ffa267803aae2d639b60acfa566cf3294e66f8 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 27 2011