Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

D

Compiler

dmd HEAD v2.083.0

Options

Author

anonymous

over 6 years ago

$ dmd prog.d -ofprog.exe
/opt/wandbox/dmd-head/linux/bin64/../../src/phobos/std/container/rbtree.d(585): Error: cannot cast `&RBNode(null, &RBNode(null, null, &RBNode(<recursion>), 2, cast(Color)cast(byte)0), &RBNode(&RBNode(<recursion>), &RBNode(null, &RBNode(null, null, &RBNode(<recursion>), 5, cast(Color)cast(byte)0), &RBNode(<recursion>), 4, cast(Color)cast(byte)1), &RBNode(&RBNode(<recursion>), null, null, 0, cast(Color)cast(byte)0), 3, cast(Color)cast(byte)1), 1, cast(Color)cast(byte)1)` to `inout(RBNode!int)*` at compile time
/opt/wandbox/dmd-head/linux/bin64/../../src/phobos/std/container/rbtree.d(695):        called from here: `(*this._begin).next()`
/opt/wandbox/dmd-head/linux/bin64/../../src/phobos/std/algorithm/comparison.d(981):        called from here: `r1.popFront()`
prog.d(6):        called from here: `equal(rbt.opSlice(), [1, 2, 3, 4, 5])`
prog.d(6):        while evaluating: `static assert(equal(rbt.opSlice(), [1, 2, 3, 4, 5]))`
Exit Code:
1