...even if the size resulted from a macro expansion. This reverts back to the behavior prior to
https://github.com/llvm/llvm-project/commit/886715af962de2c92fac4bd37104450345711e4a "[clang] Introduce -fstrict-flex-arrays=<n> for stricter handling of flexible arrays". The new behavior caused false out-of-bounds-index reports from e.g. HarfBuzz built with -fsanitize=array-bounds: HarfBuzz has various "fake" flexible array members of the form
Type arrayZ[HB_VAR_ARRAY];
in https://github.com/harfbuzz/harfbuzz/blob/main/src/hb-open-type.hh, where HB_VAR_ARRAY is defined as
#ifndef HB_VAR_ARRAY #define HB_VAR_ARRAY 1 #endif
in https://github.com/harfbuzz/harfbuzz/blob/main/src/hb-machinery.hh.
Also added a test.
Maybe default to false here?