https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114872
--- Comment #5 from Sam James <sjames at gcc dot gnu.org> --- Some ideas: * Could you maybe give a reproducer for the runtime crash? * Any chance you'd be willing to try bisect element.i with pragmas to disable/enable optimisation for chunks of it, to find the miscompiled function?