https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100230
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-8 branch has been updated by Alex Coplan <acop...@gcc.gnu.org>: https://gcc.gnu.org/g:1807c381d5dee44f24a07472d350a58f016cd5f5 commit r8-10950-g1807c381d5dee44f24a07472d350a58f016cd5f5 Author: Alex Coplan <alex.cop...@arm.com> Date: Fri Apr 23 14:09:15 2021 +0100 early-remat.c: Fix new/delete mismatch [PR100230] This simple patch fixes a mistmatched operator new/delete in early-remat.c which triggers ASan errors on (at least) AArch64 when compiling SVE code. gcc/ChangeLog: PR rtl-optimization/100230 * early-remat.c (early_remat::sort_candidates): Use delete[] instead of delete for array allocated with new[]. (cherry picked from commit 5d87c2251c441f056e0a44f928ffcb8a8a679b6b)