... to detect things like: https://www.viva64.com/en/examples/v706/
Looks like a good idea for a warning. But please don't make the diagnostic say "every element", since I hope all the elements of an array have the same size, so you don't need to consider every one of them ;-)
I thought we already had this, but I guess I was thinking of -Wsizeof-pointer-div instead...
https://gcc.gnu.org/pipermail/gcc-patches/2020-September/553888.html
Implemented in r11-4328.