[Issue 13284] [dmd 2.066-rc2] Cannot match shared classes at receive
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Aug 12 06:08:04 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13284
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
Hardware|x86_64 |All
OS|Linux |All
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> ---
Reduced test case:
import std.variant;
void main()
{
auto a = new shared A();
Variant v;
v = a;
assert(v.get!(shared A) is a);
// --> succeeds with 2.065, but fails with 2.066
}
The regression was introduced by:
https://github.com/D-Programming-Language/phobos/pull/1869
Phobos fix:
https://github.com/D-Programming-Language/phobos/pull/2418
--
More information about the Digitalmars-d-bugs
mailing list