[Issue 17876] New: Internal error with red black tree of array of arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 4 19:44:02 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17876
Issue ID: 17876
Summary: Internal error with red black tree of array of arrays
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: ovejacuantica at gmail.com
Not sure if a problem with phobos or druntime.
import std.container.rbtree;
void main () {
auto a = redBlackTree!(size_t [][]);
}
With command 'dmd file' or 'ldc file' (DMD 2.076.0 and LDC 1.4.0) gives:
/usr/include/dlang/dmd/object.d(3462): Error: static assert "Internal error."
/usr/include/dlang/dmd/std/functional.d-mixin-201(201): instantiated
from here: __cmp!(const(ulong[]), ulong[])
/usr/include/dlang/dmd/std/container/rbtree.d(866): instantiated from
here: binaryFun!(inout(ulong[][]), ulong[][])
/usr/include/dlang/dmd/std/container/rbtree.d(1832): instantiated from
here: RedBlackTree!(ulong[][], "a < b", false)
--
More information about the Digitalmars-d-bugs
mailing list