FX - 2017-01-10

With g++ 6.3.0, the optimization is now done for both the template and the integer variants, so this missed optimization was fixed upstream.

This bug report should thus be closed.