[libcxx-commits] [libcxx] [libc++][string] Remove potential non-trailing 0-length array (PR #105865)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Aug 24 02:28:06 PDT 2024
philnik777 wrote:
> It is a violation of the standard to use 0 length arrays, especially when not at the end of a structure (not a FAM GNU extension). Compiler generally accept it, but it's probably better to have a conforming implementation.
It's an extension that compilers currently support, so I don't really see why the new implementation is better. As-is this is a significant additional amount of complexity without much of a downside (other than using a questionable extension, which is purely philosophical).
https://github.com/llvm/llvm-project/pull/105865
More information about the libcxx-commits
mailing list