https://issues.dlang.org/show_bug.cgi?id=19626

berni44 <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from berni44 <[email protected]> ---
The bug can be found in

```
        static if (is(typeof(less) == string))
        {
            private enum doUnittest = isIntegral!T && (less == "a < b" || less
$
        }
        else
            enum doUnittest = false;

```

This is currently lines 750-755 in rbtree.d.

The check "isIntegral!T" is too weak. It's assumed, that this implies T
contains the numbers from 1 to 5. The check should test, whether T contains
these numbers.

--

Reply via email to