[Issue 7990] New: Assertion failure in std.variant
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 26 10:53:18 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7990
Summary: Assertion failure in std.variant
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: robert at octarineparrot.com
--- Comment #0 from Robert Clipsham <robert at octarineparrot.com> 2012-04-26 18:54:21 BST ---
The following code:
----
module test;
import std.variant;
import std.stdio;
void main(string[] args)
{
auto i = Variant(3);
if (i < "4")
writefln("true");
}
----
Results in the following assertion failure when using dmd 2.059:
$ rdmd test.d
core.exception.AssertError at std.variant(788): Assertion failure
----------------
5 test.d.42E9FB02844A66B138F2739733903C5F 0x0000000106d15536 _d_assertm + 42
6 test.d.42E9FB02844A66B138F2739733903C5F 0x0000000106d22ae3 void
std.variant.__assert(int) + 23
7 test.d.42E9FB02844A66B138F2739733903C5F 0x0000000106d032c9 int
std.variant.VariantN!(32uL).VariantN.opCmp!(immutable(char)[]).opCmp(immutable(char)[])
+ 225
8 test.d.42E9FB02844A66B138F2739733903C5F 0x0000000106cfde2c _Dmain + 64
9 test.d.42E9FB02844A66B138F2739733903C5F 0x0000000106d15ea9 extern (C) int
rt.dmain2.main(int, char**).void runMain() + 29
10 test.d.42E9FB02844A66B138F2739733903C5F 0x0000000106d1585e extern (C) int
rt.dmain2.main(int, char**).void tryExec(scope void delegate()) + 38
11 test.d.42E9FB02844A66B138F2739733903C5F 0x0000000106d15ef6 extern (C) int
rt.dmain2.main(int, char**).void runAll() + 58
12 test.d.42E9FB02844A66B138F2739733903C5F 0x0000000106d1585e extern (C) int
rt.dmain2.main(int, char**).void tryExec(scope void delegate()) + 38
13 test.d.42E9FB02844A66B138F2739733903C5F 0x0000000106d157e9 main + 237
14 test.d.42E9FB02844A66B138F2739733903C5F 0x0000000106cfdde4 start + 52
15 ??? 0x0000000000000001 0x0 + 1
----------------
--
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