[REG2.064] Issue 12174 - Problems caused by enum predicate with std.algorithm.sum

https://d.puremagic.com/issues/show_bug.cgi?id=12174