[Issue 3550] array.dup violates const/invariant without a cast.
https://issues.dlang.org/show_bug.cgi?id=3550 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.036 |D2 --
[Issue 3550] array.dup violates const/invariant without a cast.
http://d.puremagic.com/issues/show_bug.cgi?id=3550 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #4 from Walter Bright bugzi...@digitalmars.com 2011-10-02 22:33:46 PDT --- https://github.com/D-Programming-Language/dmd/commit/f6fe4cc94d3210e260905ddf4c56a332c3d4f961 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3550] array.dup violates const/invariant without a cast.
http://d.puremagic.com/issues/show_bug.cgi?id=3550 Sobirari Muhomori dfj1es...@sneakemail.com changed: What|Removed |Added Blocks||2573 --- Comment #2 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-08-03 13:25:17 PDT --- Just thought, there must be this bug... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3550] array.dup violates const/invariant without a cast.
http://d.puremagic.com/issues/show_bug.cgi?id=3550 --- Comment #1 from Steven Schveighoffer schvei...@yahoo.com 2009-11-24 20:02:10 PST --- I should clarify: I think idup should fail if the element has any *non-immutable* references in it. Note this leaves us with no ways to dup a const array with references in it! Should we have cdup? A workaround to both would be to always allow dup when an explicit cast is involved. i.e.: auto arg2 = cast(const(C)[])arg.dup; -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---