digitalmars.D.bugs - [Issue 5310] New: Variant == const(Variant) doesn't compile
- d-bugmail puremagic.com (42/43) Dec 02 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5310
- d-bugmail puremagic.com (10/10) Jan 09 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5310
- d-bugmail puremagic.com (10/10) Feb 24 2013 http://d.puremagic.com/issues/show_bug.cgi?id=5310
- d-bugmail puremagic.com (17/17) Feb 24 2013 http://d.puremagic.com/issues/show_bug.cgi?id=5310
http://d.puremagic.com/issues/show_bug.cgi?id=5310 Summary: Variant == const(Variant) doesn't compile Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: clugdbug yahoo.com.au import std.variant; void foo(const Variant a) { Variant b; assert (a == b); } ---dmd test0test0.d(12): Error: template std.variant.VariantN!(maxSize).VariantN.opEquals(T ) does not match any function template declaration test0.d(12): Error: template std.variant.VariantN!(maxSize).VariantN.opEquals(T ) cannot deduce template function from argument types !()(VariantN!(maxSize)) And if you change the assert into: assert(b==a); you get: c:\dmd\windows\bin\..\..\src\phobos\std\variant.d(499): Error: static assert "A ssigning Variant objects from const Variant objects is currently not supported." c:\dmd\windows\bin\..\..\src\phobos\std\variant.d(481): instantiated from here: opAssign!(const(VariantN!(maxSize))) c:\dmd\windows\bin\..\..\src\phobos\std\variant.d(737): instantiated from here: __ctor!(const(VariantN!(maxSize))) test0.d(12): instantiated from here: opEquals!(const(VariantN!(maxSize)) ) ---- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 02 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5310 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei metalanguage.com AssignedTo|nobody puremagic.com |andrei metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 09 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5310 Alex Rønne Petersen <alex lycus.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |alex lycus.org Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 24 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5310 Alex Rønne Petersen <alex lycus.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |alex lycus.org Resolution| |FIXED Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/7b03c1eda59cd89739e4164235e43522269b009b issue 5310 https://github.com/D-Programming-Language/phobos/commit/75f578228cd1975995551894ca0717eb19fda0f2 Fix Issue 5310 - Variant == const(Variant) doesn't compile -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 24 2013