https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104568
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The code tries to compute how many elements an array with such element type should have, and obviously when the element size is zero, that doesn't work. Will need to figure out if the size can be derived from something else or is completely lost at that point, 0 * anything is 0 but even with zero element size we might need to know if p[0] or p[23] etc. is valid or not.