[Issue 14062] Not pure std.variant.Variant ctor

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Feb 28 20:34:35 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14062

--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to bearophile_hugs from comment #0)
> test.d(3): Error: pure function 'D main' cannot call impure function
> 'std.variant.VariantN!20u.VariantN.__ctor!int.this'
> test.d(3): Error: pure function 'D main' cannot call impure function
> 'std.variant.VariantN!20u.VariantN.~this'
> test.d(3): Error: pure function 'D main' cannot call impure function
> 'std.variant.VariantN!20u.VariantN.~this'

The purity violation errors had been wrongly erased by compiler issue in
previous dmd versions. Currently Variant implementation does not support pure
construction even if the setting value can do it.

--


More information about the Digitalmars-d-bugs mailing list