Known bug present on gcc 6.2 (libstd++) when applying some optimizations. Bug URL: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77686 Specific processor is: Xilinx Zynq 7020 Bug subject: wrong code on arm-linux-gnueabi and arm-linux-gnueabihf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77686