https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114940
--- Comment #1 from Timothy Liu Xuefeng <liuxf19 at 163 dot com> --- It seems that passing -fsized-deallocation to clang++ can resolve this problem. But it seems that it's not the default behavior.
liuxf19 at 163 dot com via Gcc-bugs Fri, 03 May 2024 12:57:01 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114940
--- Comment #1 from Timothy Liu Xuefeng <liuxf19 at 163 dot com> --- It seems that passing -fsized-deallocation to clang++ can resolve this problem. But it seems that it's not the default behavior.