On 11/12/2015 6:44 AM, John Colvin wrote:
dmd is being clever and spotting that fmttable is pure, it would be good if ldc/gdc could spot this to.
It's more than that - dmd's optimizer is designed to make use of the guarantees of a pure function. Since C/C++ do not have pure functions, ldc/gdc's optimizer may not have that capability.
