On 11/12/2015 6:44 AM, John Colvin wrote:dmd is being clever and spotting that fmttable is pure, it would be good ifldc/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.
gcc has had the pure function attribute since version 2.96 in 2000.
