https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101239
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Arthur O'Dwyer from comment #4) > The problem seems to be something about over-eager hard-erroring on pointer > arithmetic with incomplete types, because GCC also rejects this valid code: I split that issue out into PR 103700 which I think is unrelated to the array size of 0 issue listed here.