https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104106
--- Comment #2 from denis.campredon at gmail dot com --- The missed optimisations are also present if the arrays are allocated with malloc or new.
denis.campredon at gmail dot com via Gcc-bugs Wed, 19 Jan 2022 00:03:04 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104106
--- Comment #2 from denis.campredon at gmail dot com --- The missed optimisations are also present if the arrays are allocated with malloc or new.