https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82271
--- Comment #6 from Franz Sirl <sirl at gcc dot gnu.org> --- Actually this is likely triggered by undefined behaviour. The array m_pTemp is too small for nAccessSize=4096. Increasing the array size to 1024 elements makes the bug go away. If you agree, just close the bug and sorry for the noise.