https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114023
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
--- Comment #6 from anlauf at gcc dot gnu.org ---
Created attachment 62563
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62563&action=edit
Partial patch
This fixes the testcase in comment#4 by checking span vs. elem_len.
It does not yet handle the case of an unlimited polymorphic pointer
e.g. to the real part of the target array.