digitalmars.D.bugs - [Issue 11361] New: [2.064 beta] Variant fails to compile with functions/delegates that contain const parameters.
- d-bugmail puremagic.com (45/45) Oct 25 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11361
- d-bugmail puremagic.com (11/11) Oct 26 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11361
- d-bugmail puremagic.com (13/13) Oct 26 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11361
- d-bugmail puremagic.com (10/10) Oct 26 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11361
- d-bugmail puremagic.com (10/10) Oct 26 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11361
- d-bugmail puremagic.com (8/8) Oct 27 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11361
- d-bugmail puremagic.com (7/7) Oct 27 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11361
- d-bugmail puremagic.com (8/10) Oct 27 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11361
http://d.puremagic.com/issues/show_bug.cgi?id=11361 Summary: [2.064 beta] Variant fails to compile with functions/delegates that contain const parameters. Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: opantm2+dbugs gmail.com Example: import std.variant; const(char[]) t1(const(char[]) c) { return c; } void main() { auto fn = &t1; Variant v = fn; } Output: dmd test.d /Users/kapps/dev/dmd/phobos/std/variant.d(515): Error: can only initialize const member _expand_field_0 inside constructor /Users/kapps/dev/dmd/phobos/std/variant.d(585): Error: template instance std.variant.VariantN!(32LU).VariantN.handler!(const(char[]) function(const(char[]))) error instantiating /Users/kapps/dev/dmd/phobos/std/variant.d(535): instantiated from here: opAssign!(const(char[]) function(const(char[]) c)) test.d(9): instantiated from here: __ctor!(const(char[]) function(const(char[]) c)) /Users/kapps/dev/dmd/phobos/std/variant.d(535): Error: template instance std.variant.VariantN!(32LU).VariantN.opAssign!(const(char[]) function(const(char[]) c)) error instantiating test.d(9): instantiated from here: __ctor!(const(char[]) function(const(char[]) c)) test.d(9): Error: template instance std.variant.VariantN!(32LU).VariantN.__ctor!(const(char[]) function(const(char[]) c)) error instantiating -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 25 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11361 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, rejects-valid Version|unspecified |D2 https://github.com/D-Programming-Language/phobos/pull/1667 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 26 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11361 Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/4d30a5f278ec16b83148db85bc5bcaa2027f5644 Fix issue 11361 - Variant fails to compile with delegates containing const arguments. https://github.com/D-Programming-Language/phobos/commit/3fd3cee0d02cc0e114bfca3665512faabf93c4cb Fix issue 11361 - Variant fails to compile with functions containing const arguments. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 26 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11361 Commit pushed to 2.064 at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/f2f11867dae630ba950090648ed7c9a3bda9471b Fix issue 11361 - Variant fails to compile with functions containing const arguments. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 26 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11361 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 26 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11361 13:22:05 PDT --- This fixes master, but fails to fix 2.064. Apparently there are other changes to phobos necessary. In fact, putting in the variant.d from master also fails its unittests in 2.064. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 27 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11361 13:26:34 PDT --- This is not a regression for 2.064. In fact, pulling this fix breaks 2.064. I'll change the title. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 27 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11361This is not a regression for 2.064. In fact, pulling this fix breaks 2.064. I'll change the title.Sorry, I wasn't aware that there was a difference between 2.064 beta and master, but I see now that there's a separate release branch for 2.064. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 27 2013