[Issue 9043] New: std.variant: Crash on comparing unordered types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 17 15:55:25 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9043
Summary: std.variant: Crash on comparing unordered types
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: code at klickverbot.at
--- Comment #0 from David Nadlinger <code at klickverbot.at> 2012-11-17 15:55:24 PST ---
Handling comparisons of unordered types in std.variant is broken:
---
import std.variant;
struct A { int a; }
auto b = Variant(A(3)) == A(4); // segfaults
auto c = Variant(A(3)) < A(4); // segfaults instead of throwing
---
Fix incoming.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list