digitalmars.D.bugs - [Issue 14062] New: Not pure std.variant.Variant ctor
- via Digitalmars-d-bugs (26/26) Jan 27 2015 https://issues.dlang.org/show_bug.cgi?id=14062
https://issues.dlang.org/show_bug.cgi?id=14062 Issue ID: 14062 Summary: Not pure std.variant.Variant ctor Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: regression Priority: P1 Component: Phobos Assignee: nobody puremagic.com Reporter: bearophile_hugs eml.cc This seems a regression: void main() pure { import std.variant: Variant; auto v = Variant(1); } dmd 2.067alpha gives: 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' --
Jan 27 2015