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: [email protected]
Reporter: [email protected]
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)
--