COmpilation issue with GCC high optimalisation