zygoloid wrote: > Is the warning valid? Is the change in clang's behavior intentional?
What do you have `-fstrict-flex-arrays` set to? Per [the documentation](https://releases.llvm.org/15.0.0/tools/clang/docs/ClangCommandLineReference.html#cmdoption-clang-fstrict-flex-arrays) (which weirdly seems to be missing at HEAD...) if it's not set to `1` then we don't consider a `[1]` array bound to indicate a flexible array member, which would make the warning correct. https://github.com/llvm/llvm-project/pull/95474 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits