digitalmars.D.bugs - [Issue 7880] New: [CTFE] cast from void array allowed with different results than at runtime
- d-bugmail puremagic.com (26/26) Apr 09 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7880
- d-bugmail puremagic.com (13/13) Apr 11 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7880
- d-bugmail puremagic.com (13/13) Apr 14 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7880
- d-bugmail puremagic.com (9/9) Apr 30 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7880
http://d.puremagic.com/issues/show_bug.cgi?id=7880 Summary: [CTFE] cast from void array allowed with different results than at runtime Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: timon.gehr gmx.ch --- Comment #0 from timon.gehr gmx.ch 2012-04-09 14:19:21 PDT --- DMD 2.058/2.059head int bar(){ int[] y = new int[2]; y[0]=2000000; void[] x = y; return (cast(byte[])x)[1]; } static assert(!is(typeof({enum _ = (assert(!bar()),1);}))); // fail The static assertion should pass. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 09 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7880 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull CC| |clugdbug yahoo.com.au --- Comment #1 from Don <clugdbug yahoo.com.au> 2012-04-11 11:20:46 PDT --- This bug applies to casting any slice of another array, not just a void[] slice. https://github.com/D-Programming-Language/dmd/pull/873 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 11 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7880 --- Comment #2 from github-bugzilla puremagic.com 2012-04-14 12:05:00 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ca6e0d36c41ed4b725e76a0b4fc6fdb28f08cf56 Fix issue 7880 [CTFE] cast from void array allowed with different results than at runtime Actually applies to casts of any kind of slice, not just void[]. https://github.com/D-Programming-Language/dmd/commit/e919e37f26f9b9ea042a1d317cd1e392c4e432f3 Merge pull request #873 from donc/ctfe7880arraycast Fix issue 7880 [CTFE] cast from void array allowed with different result... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 14 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7880 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 30 2012