digitalmars.D.bugs - [Issue 11187] New: A small transitive const bug on struct copying
- d-bugmail puremagic.com (35/35) Oct 06 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11187
- d-bugmail puremagic.com (10/10) Oct 06 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11187
- d-bugmail puremagic.com (11/11) Oct 07 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11187
- d-bugmail puremagic.com (9/9) Oct 07 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11187
http://d.puremagic.com/issues/show_bug.cgi?id=11187 Summary: A small transitive const bug on struct copying Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: k.hara.pg gmail.com The copy conversion from const S to S should work, because the field S.cx.arr has same qualified type const(int[]). struct X { int[] arr; } struct S { const(X) cx; } void main() { static assert(is(typeof((const S).init.cx.arr) == const(int[]))); static assert(is(typeof(( S).init.cx.arr) == const(int[]))); const S sc; S sm = sc; // fails, but should work static assert(is(const S : S)); // fails, but should work } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 06 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11187 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull https://github.com/D-Programming-Language/dmd/pull/2639 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 06 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11187 Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/dd2d3060854f68042740b8b447387e55323e6c47 fix Issue 11187 - A small transitive const bug on struct copying https://github.com/D-Programming-Language/dmd/commit/a5041a6a563c2893d707737e5c602f0b4b488180 Issue 11187 - A small transitive const bug on struct copying -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 07 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11187 Kenji Hara <k.hara.pg gmail.com> 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: -------
Oct 07 2013